Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I use this technique a lot actually. My typical setup of a root <code>UIViewController</code> (you call it <code>memberController</code>) has a view with a <code>UITabBar</code> at the bottom, and then another <code>UIView</code> (you call it <code>mainContent</code>) which contains the rest of the space above that bar.</p> <p><code>memberController</code> stays on the screen all the time. Inside of <code>mainContent</code>, add a <code>UINavigationController</code> and initialize it with your first content-carrying <code>GetStartedViewController</code>. When you want to switch tabs on your tab bar, send the appropriate message to this <code>UINavigationController</code> and the views will change inside.</p> <p>HINT: say your <code>UINavigationController</code> is called <code>navController</code> - you can get rid of the navigation bar (blue one at the top) by sending the message <code>[navController setNavigationBarHidden:TRUE];</code></p> <p>EDIT: The code you requested looks like this. This adds a nav controller to a window's view in the <code>applicationDidFinishLaunchingWithOptions</code> method. Instead of window, just do this same thing on your view controller in the <code>viewDidLoad</code>.</p> <p><code>window</code> and <code>navController</code> are both properties</p> <pre><code> self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; self.navController = [[UINavigationController alloc] initWithRootViewController:[YourViewController new]]; [self.navController setNavigationBarHidden:YES]; [self.window addSubview:self.navController.view]; [self.window makeKeyAndVisible]; </code></pre> <p>Hope this helps!</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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