Hi, I started out with the utility application as the template.
Trying to add a UITabBarController to the flipside view.
in the flipsideviewcontroller.h, I declared:
UITabBarController *tabBarController;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
synthesized it in the .m
and added
I created 2 additional view controllers:
FirstTabViewController and SecondTabViewController
Made one red, one blue
Opened up my flipside .xib
Added a uitabbarcontroller to the box
changed class and nib of tab 1 to firsttabviewcontroller and class/nib of tab 2 to secondtabview controller
And connected file's owner to the UITabBarcontroller
Is this right?
Appreciate the help
Trying to add a UITabBarController to the flipside view.
in the flipsideviewcontroller.h, I declared:
UITabBarController *tabBarController;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
synthesized it in the .m
and added
Code:
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor viewFlipsideBackgroundColor];
pickerArray = [[NSMutableArray alloc] init];
[pickerArray addObject:@"Manage Inventory"];
[pickerArray addObject:@"Order Parts"];
[pickerArray addObject:@"Blueprints"];
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
}
I created 2 additional view controllers:
FirstTabViewController and SecondTabViewController
Made one red, one blue
Opened up my flipside .xib
Added a uitabbarcontroller to the box
changed class and nib of tab 1 to firsttabviewcontroller and class/nib of tab 2 to secondtabview controller
And connected file's owner to the UITabBarcontroller
Is this right?
Appreciate the help