Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. You should never attempt to manipulate the UITabBar object itself stored in
  2. this property. If you attempt to do so, the tab bar view throws an exception.
  3.  
  4. for (int i = 0; i < [self.tabBarController.viewControllers count]; i++) {
  5. if([self.tabBarController.viewControllers[i] isKindOfClass: [UIViewController class]]) {
  6. UIViewController *vc = self.tabBarController.viewControllers[i];
  7. switch(i) {
  8. case 0:
  9. vc.tabBarItem.title = @"primero";
  10. break;
  11. case 1:
  12. vc.tabBarItem.title = @"secondo";
  13. break;
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement