my codes are following :
- (IBAction)done:(id)sender
{
[selfsetField:jidFieldforKey:kXMPPmyJID];
/// [self setField:passwordField forKey:kXMPPmyPassword];
[selfsetPass:passwordFieldforKey:kXMPPmyPassword];
RootViewController *root = [[RootViewControlleralloc] initWithNibName:@"RootViewController"bundle:nil];
[root initWithPassword:passwordField.textinitWithUser:jidField.text];
//[[ self appDelegate] setupStream];
[ [ selfappDelegate] xmppStreamDidConnect: [[selfappDelegate] xmppStream]];
//[ [ self appDelegate] goOnline];
[windowsetRootViewController:navigationController];
// [self.window setRootViewController:settingsViewController];
[windowmakeKeyAndVisible];
//[self presentViewController:root animated:YES completion:nil];
[selfdismissViewControllerAnimated:YEScompletion:NULL];
}
Can anyone help me to login at first time?