Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to start with view based application. And then create a UITabbarController in you appDelegate file.</p> <pre><code>Appdelegate.h UITabBarController *tabBarController; // set properties Appdelegate.m // Synthsize tabBarController = [[UITabBarController alloc] init]; tabBarController.delegate=self; //Adding Search,Nearby,Map,AboutUs,Favorites Tabs to tabBarController Search * search = [[Search alloc] init]; UINavigationController *searchNav = [[UINavigationController alloc] initWithRootViewController:search]; Nearby* nearby = [[Nearby alloc] init]; UINavigationController *nearbyNav = [[UINavigationController alloc] initWithRootViewController:nearby]; Map* map = [[Map alloc] init]; UINavigationController *mapNav = [[UINavigationController alloc] initWithRootViewController:map]; AboutUs* aboutUs = [[AboutUs alloc] init]; UINavigationController *aboutUsNav = [[UINavigationController alloc] initWithRootViewController:aboutUs]; Favorites* favorites = [[Favorites alloc] init]; UINavigationController *favoritesNav = [[UINavigationController alloc] initWithRootViewController:favorites]; NSArray* controllers = [NSArray arrayWithObjects:searchNav,nearbyNav,mapNav,aboutUsNav,favoritesNav, nil]; </code></pre> <p>tabBarController.viewControllers = controllers; </p> <pre><code>[window addSubview:tabBarController.view]; </code></pre> <p>You can accordingly manage in which tab you want to place navigation controller or only a view controller.</p> <p>Then in each of the view controllers mentioned above you need to implement</p> <pre><code>- (id)init {} </code></pre> <p>in which you can set Tab name and image.</p>
    singulars
    1. This table or related slice is empty.
    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