Guest User

Untitled

a guest
Aug 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. TabBarController inside NavigationController
  2. NSMutableArray *viewControllers = [[NSMutableArray alloc] init];
  3.  
  4. // create someView
  5. [viewControllers addObject:someView];
  6. // create someView2
  7. [viewControllers addObject:someView2];
  8.  
  9.  
  10. UITabBarController *tabController = [[UITabBarController alloc] init];
  11. [tabController setViewControllers:viewControllers];
  12.  
  13. [[self navigationController] pushViewController:tabController animated:YES];
  14.  
  15. [self.navigationController popViewControllerAnimated: NO];
Add Comment
Please, Sign In to add comment