Advertisement
Guest User

Accessing more view controller and making changes

a guest
Apr 3rd, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1.  
  2. //Change the navigation bar color and set a background image
  3. self. tabBarController.moreNavigationController.navigationBar.tintColor = [UIColor colorWithRed:0.89 green:0.48 blue:0.27 alpha:0.1];
  4. [tabBarController.moreNavigationController.topViewController.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:kBackgroundImage]]];
  5.  
  6. //Access table view of more view controller and make changes
  7.  
  8. UITableView* moreView = ((UIViewController*)[tabBarController.moreNavigationController.viewControllers objectAtIndex:0]).view;
  9. moreView.backgroundColor = [UIColor whiteColor];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement