Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><code>UITabBarController</code> derives all of the information necessary to create a tab bar item for each view controller by inspecting the view controller itself.</p> <p>All you need to do is assign an array of view controllers using <code>-setViewControllers:animated:</code>.</p> <p>Once a view controller is added to a tab bar controller, the tab bar controller will inspect the view controller's <code>tabBarItem</code> property. This tab bar item will be inserted into the tab bar controller's tab bar automatically. You can initialize a tab bar in each view controller programmatically. It looks something like this...</p> <pre><code>UITabBarItem *tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Title" image:[UIImage imageNamed:@"someImage"] tag:1]; </code></pre> <p>or if you want to use one of the system items...</p> <pre><code>UITabBarItem *tabBarItem = [[UITabBarItem alloc] initWithSystemItem:UITabBarSystemItemFeatured tag:1]; </code></pre> <p>I suggest you take a look at the <a href="http://developer.apple.com/library/ios/#documentation/uikit/reference/UITabBarController_Class/Reference/Reference.html" rel="nofollow"><code>UITabBarController</code></a>, <a href="http://developer.apple.com/library/IOs/#documentation/UIKit/Reference/UITabBarItem_Class/Reference/Reference.html" rel="nofollow"><code>UITabBarItem</code></a> and <a href="http://developer.apple.com/library/ios/#documentation/uikit/reference/UIViewController_Class/Reference/Reference.html" rel="nofollow"><code>UIViewController</code></a> class references and read up on the relevant properties. The docs are filled with indispensable information.</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. 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