- (IBAction) btnLoginClick {
LoginViewController * loginView = [[LoginViewController alloc] initWithNibName: @ "LoginViewController" bundle: nil];
/ / UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController: loginView];
/ / [Self.navigationController presentModalViewController: nav animated: YES];
/ / [Self.navigationController pushViewController: loginView animated: YES];
[Self.navigationController presentModalViewController: loginView animated: YES];
/ / [Nav release];
[LoginView release];
NSLog (@ "aaa");
} I also tried not commented out the line, or not moving, the console output of the aaa
Reply:
Yeah a lot of comment lines
Reply:
[Self presentModalViewController: loginView animated: YES];
navigationController should not initialize
Reply:
1. NSAssert (self.navigationController! = Nil, @ "nothing");
2. Breakpoint debug
Reply:
Controls are not bound class matter? ?
No comments:
Post a Comment