So here is my question.
I am using s subview of my MainViewcontroller to implement a TabBar in the following manner:
@class MainViewController;
@interface MyAppDelegate : NSObject <UIApplicationDelegate>
{
// UITabBarController root controller view
UITabBarController *rootController;
}
// Added
@property (nonatomic, retain) IBOutlet UITabBarController *rootController;
@end
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary
*)launchOptions
{
// Added root controller
[self.window addSubview:rootController.view];
return YES;
}
I have 4 view controllers and 4 tabs. I have specified in each tab view .m and in the main view controller:
// Autoration of view orientations
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
I get no rotation to any orientation but in my main view controller. I thought I needed to override the main view but my understanding is not sufficient. Please provide me with assistance.