Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Generally you will start with the Template called "Tab Bar Application" and as of Xcode 4 starts by loading the MainWindow Nib, which hold a tab bar and the tab bar is set up in IB to have 2 view controllers, called "FirstViewController", and "SecondViewController"...</p> <p>You can follow that pattern if it suites you, otherwise you may want to start with a view based application and add your own tab bar. I personally find it to be easier to control the tab bar, through the <code>UITabBarDelegate</code>, especially if you plan to do anything slightly esoteric.</p> <p><strong>Edit:</strong></p> <p>Basically one of two ways, if you plan to load a Navigation controller stack, or a single modal view.</p> <p>1)</p> <pre><code>ThirdViewController * controller = [[ThirdViewController alloc] initWithNibName:@"ThirdViewController" bundle:nil]; UINavigationController * myNavigationController = [[UINavigationController alloc] initWithRootViewController:controller]; [self presentModalViewController:myNavigationController animated:YES]; [controller release]; [myNavigationController release]; </code></pre> <p>2)</p> <pre><code>ThirdViewController * controller = [[ThirdViewController alloc] initWithNibName:@"ThirdViewController" bundle:nil]; [self presentModalViewController:controller animated:YES]; [controller release]; </code></pre> <p>either way get back to the Tab environment by calling the following on the view controller that is calling present modal.</p> <blockquote> <p>[self dismissModalViewControllerAnimated:YES];</p> </blockquote>
    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.
 

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