Note that there are some explanatory texts on larger screens.

plurals
  1. POpresentModalViewController not responding
    primarykey
    data
    text
    <p>I have 3 classes. </p> <p>First controllor is the first controllor in tabbar. I am using presentModalViewController to present a login screen and a Home screen. I have a presentModalViewController in firstcontrollor which present the login screen and in Loginscreen viewdidload method I have presentModalViewController which present home screen. The home screen presentModalViewController is dismissed in homePage_Btn_Clicked and presentModalViewController is dismissed in login_Btn_Clicked. The problem I have is my home screen is never presented. Any help? I am new in iPhone development.</p> <pre><code>//First Controllor </code></pre> <p>FirstControllor.m</p> <pre><code>- (void)viewDidLoad { [super viewDidLoad]; Accounts_Login *lvc = [[Accounts_Login alloc]initWithNibName:@"Accounts_Login" bundle:[NSBundle mainBundle]]; [self presentModalViewController:lvc animated:NO]; [lvc release]; } //Login_view class </code></pre> <p>Login_view.m</p> <pre><code>- (void)viewDidLoad { [super viewDidLoad]; Home_Screen *lvc1 = [[Home_Screen alloc]initWithNibName:@"Home_Screen" bundle:[NSBundle mainBundle]]; [self presentModalViewController:lvc1 animated:NO]; [lvc1 release]; user_ID_TextField.text = [[NSUserDefaults standardUserDefaults] objectForKey:@"User ID"]; } -(IBAction) login_Btn_Clicked{ if ([services authenticate:credential_Data]) { [self dismissModalViewControllerAnimated:YES]; [credential_Data autorelease]; } //HomePage class </code></pre> <p>HomePage.m</p> <pre><code> -(IBAction) homePage_Btn_Clicked:(id) sender{ UIButton *theButton = (UIButton *)sender; int count; switch (theButton.tag) { case 101: count++; [self dismissModalViewControllerAnimated:YES]; break; default: break; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload