Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>All you want is to switch to a Tabbar based application from a Naviagtion based application.</p> <p>STEP 1] Open MainWindow.xib and Replace navigationcontroller with a UITabbarController STEP 2] In the application delegate replace the variable</p> <pre><code>UINavigationController *navController; </code></pre> <p>with </p> <pre><code>UITabBarController* tabBarController; </code></pre> <p>i.e</p> <pre><code>@interface ViewTestAppDelegate : NSObject &lt;UIApplicationDelegate&gt; { UIWindow *window; UINavigationController *navController; } @property (nonatomic, retain) IBOutlet UINavigationController *navController; @property (nonatomic, retain) IBOutlet UIWindow *window; </code></pre> <p>with </p> <pre><code>@interface ViewTestAppDelegate : NSObject &lt;UIApplicationDelegate&gt; { UIWindow *window; UITabBarController* tabBarController; } @property (nonatomic, retain) IBOutlet UITabBarController *tabBarController; @property (nonatomic, retain) IBOutlet UIWindow *window; </code></pre> <p>and accordingly update the same in property as well as in .m file </p> <p>replace the code</p> <pre><code>[self.window addSubview:navController.view]; </code></pre> <p>with </p> <pre><code> [self.window addSubview:tabBarController.view]; </code></pre> <p>in the <code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions</code><br> method.</p> <p>All we have done is replaced the navigation controller with a tabbar controller. <img src="https://i.stack.imgur.com/FzcGA.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/44OEi.png" alt="enter image description here"></p> <p>After you connect the appropriate outlets all you need to do is to assign desired view controller (you can reuse the view you were using earlier to show data from Sqlite database) as the selected view controller for TabbarController which will be the first view loaded with a tableview.</p> <p>this will all look as follows. <img src="https://i.stack.imgur.com/epZIh.png" alt="enter image description here"></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.
    1. This table or related slice is empty.
    1. VO
      singulars
      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