Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TabBarController inside NavigationController
- NSMutableArray *viewControllers = [[NSMutableArray alloc] init];
- // create someView
- [viewControllers addObject:someView];
- // create someView2
- [viewControllers addObject:someView2];
- UITabBarController *tabController = [[UITabBarController alloc] init];
- [tabController setViewControllers:viewControllers];
- [[self navigationController] pushViewController:tabController animated:YES];
- [self.navigationController popViewControllerAnimated: NO];
Add Comment
Please, Sign In to add comment