Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use navigation controller at root and after that tab bar controller as following way:-</p> <p>this one is yr application delegate's .h file:-</p> <pre><code>@interface NavTabDemoAppDelegate : NSObject &lt;UIApplicationDelegate&gt; { IBOutlet UINavigationController *navController; IBOutlet UITabBarController *TabBar; } @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic, retain) IBOutlet UINavigationController *navController; @property (nonatomic, retain) IBOutlet UITabBarController *TabBar; </code></pre> <p>this one is yr app delegate's .m file</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. [self.window addSubview:navController.view]; [self.window makeKeyAndVisible]; return YES; } </code></pre> <p>drag and drop navigation controller and tab bar controller from library to main window.xib and set outlets to application delegates</p> <p>In yr tableview view controller's .h file, create object of yr delegate as follows</p> <pre><code>NavTabDemoAppDelegate *appdelegate; </code></pre> <p>in .m file of yr tableview controller at viewdidload</p> <pre><code>appdelegate = [[UIApplication sharedApplication] delegate]; </code></pre> <p>just write this at tableview view controller's DidSelectRowAtIndexPath</p> <pre><code>[self.navigationController pushViewController:appdelegate.TabBar animated:YES]; </code></pre> <p>done!</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. VO
      singulars
      1. This table or related slice is empty.
    2. 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