Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)loadView
- {
- [super loadView];
- NSMutableArray *controllers = [NSMutableArray array];
- [controllers addObject:[[[WoodImageViewController alloc] initWithWood:wood] autorelease]];
- [controllers addObject:[[[WoodDetailsViewController alloc] initWithWood:wood] autorelease]];
- self.tabBarController = [[[UITabBarController alloc] init] autorelease];
- [self.tabBarController setViewControllers:controllers];
- [self.view addSubview:self.tabBarController.view];
- [self.tabBarController.view setFrame:CGRectMake(0, 0, 320, 460)];
- [self.navigationItem setTitle:wood.name];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement