Note that there are some explanatory texts on larger screens.

plurals
  1. POissue while navigation method called from modal view in iphone?
    primarykey
    data
    text
    <p>i have a problem while calling a navigation method from a presented modal view. i have three view controllers, HomeViewController,loadViewController, modalViewController.</p> <p>modalViewController presented as a moda view from HomeViewController by a button press. actually what i need is , when i press a button from presented modalViewController , modal view should be dismissed and the HomeViewController should navigate to loadViewController. its not working with my code,</p> <p>HomeViewController.m</p> <pre><code> - (IBAction)shortCutButtonPressed:(id)sender { ShortCutViewController *viewController=[[ShortCutViewController alloc]initWithNibName:nil bundle:nil]; [self.navigationController presentModalViewController:viewController animated:YES]; [viewController release]; } -(void)loadViewControllerLoad { loadViewController *loadView=[[loadViewController alloc]initWithNibName:nil bundle:nil]; [self.navigationController pushViewController:loadView animated:YES]; [loadView release]; } </code></pre> <p>modalViewController.m</p> <p>//modal view controller will call the function loadViewControllerLoad from HomeViewController to navigate homeview to loadView. function call reaches correctly but the view is not navigating to loadView</p> <pre><code> - (IBAction)HomeButtonPressed:(id)sender { homeView=[[HomeViewController alloc]initWithNibName:nil bundle:nil]; [homeView loadViewControllerLoad]; [[self presentingViewController] dismissModalViewControllerAnimated:YES]; [homeView release]; } </code></pre> <p>function call reaches at HomeViewController but the view doesn't navigating to LoadView? </p>
    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.
    1. This table or related slice is empty.
    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