Note that there are some explanatory texts on larger screens.

plurals
  1. POviewWillAppear-related problem
    primarykey
    data
    text
    <p>Without giving you all my code examples, I'll made this quick.</p> <p>Has this ever happened to one of you to get viewWillAppear called only the first time it shows up?</p> <p>I have this problem with all my view.</p> <p>For example: When my app starts, I get to the StartView which is a main menu. (viewWillAppear gets called) then I press on one button that'll show a navigation controller (viewWillAppear gets called). Then I get back to the main menu (it does not get called) and then I press on the same navigation controller again and it does not get called.</p> <p>It would be awesome if someone could points me somewhere, I've been searching for this since two days now...</p> <p>Also if you need more code samples, I can give you some.</p> <p>For further reading:</p> <p>That's how I call my navigation controller:</p> <pre><code>PremierSoinsAppDelegate *AppDelegate = (PremierSoinsAppDelegate *)[[UIApplication sharedApplication] delegate]; UIView *newView = [AppDelegate.navigationController view]; [newView setFrame:CGRectMake(320.0f, 0.0f, 320.0f, 480.0f)]; [UIView beginAnimations:@"RootViewController" context:nil]; [UIView setAnimationDuration:0.3]; newView setFrame:CGRectMake(0.0f, 0.0f, 320.0f, 480.0f)]; UIView commitAnimations]; [AppDelegate.window addSubview:newView]; [AppDelegate.window makeKeyAndVisible]; </code></pre> <p>And that's how I show my menu back:</p> <pre><code>PremierSoinsAppDelegate *AppDelegate = (PremierSoinsAppDelegate *)[[UIApplication sharedApplication] delegate]; UIView *newView = [AppDelegate.startViewController view]; newView setFrame:CGRectMake(-320.0f, 0.0f, 320.0f, 480.0f)]; UIView beginAnimations:@"StartViewController" context:nil]; UIView setAnimationDuration:0.3]; newView setFrame:CGRectMake(0.0f, 0.0f, 320.0f, 480.0f)]; [UIView commitAnimations]; [AppDelegate.window addSubview:newView]; [AppDelegate.window makeKeyAndVisible]; </code></pre> <p>Thanks A LOT.</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