Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (void)loadView
  2. {
  3.     [super loadView];
  4.    
  5.     NSMutableArray *controllers = [NSMutableArray array];
  6.    
  7.     [controllers addObject:[[[WoodImageViewController alloc] initWithWood:wood] autorelease]];
  8.     [controllers addObject:[[[WoodDetailsViewController alloc] initWithWood:wood] autorelease]];
  9.    
  10.     self.tabBarController = [[[UITabBarController alloc] init] autorelease];
  11.     [self.tabBarController setViewControllers:controllers];
  12.     [self.view addSubview:self.tabBarController.view];
  13.     [self.tabBarController.view setFrame:CGRectMake(0, 0, 320, 460)];
  14.    
  15.     [self.navigationItem setTitle:wood.name];
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement