I'll add some code, maybe it will help more:
This is in appDelegate:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
/
[self initControllers];
return YES;
}
And now initControllers:
-(void)initControllers {
self.tabBarController = [[BasicTabBarController alloc] init];
self.monthCalendarController = [[MonthCalendarController alloc] init];
UINavigationController *monthCalendarNavigationController = [[BasicNavigationController alloc] initWithRootViewController:_monthCalendarController];
SummaryController *summaryController = [[SummaryController alloc] init];
UINavigationController *summaryNavigationController = [[BasicNavigationController alloc] initWithRootViewController:summaryController];
NSArray* controllers = nil;
controllers = [NSArray arrayWithObjects:monthCalendarNavigationController, summaryNavigationController, nil];
_tabBarController.viewControllers = controllers;
/
_window.rootViewController = _tabBarController;
}
BasicTabBarController just extends UITabBarController and is without XIB file.
Code:
@implementation BasicTabBarController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
/
NSLog(@"nibNameOrNil: %@", nibNameOrNil);
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
/
}
-(void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
/
}
- (BOOL)shouldAutorotate
{
return [self.selectedViewController shouldAutorotate];
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
return [self.selectedViewController supportedInterfaceOrientations];
}
Month and Summary is just UIViewControllers with xib files.
BasicNavigationController is UINavigationController.
Hope it gives more info about Safe Area fixes.