I have a splash screen that fades into the main screen with animation. I have set the UIstatusbar style to Light from General settings of the Project and also set "View controller-based status bar appearance" in info.plist to NO.
All the views and images start from y = 0, i.e the TOP. The status bar looks like this and i am not able to debug the reason.
I have not written any additional code in view controller. Although i have tried the few of these but they dont seem to work
-(void)viewDidLayoutSubviews
{
if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
[self setNeedsStatusBarAppearanceUpdate];
}
}
or making the statusbar hide = NO and setting style after animation end. None of these seem to work. Any pointers will be helpful.
[UPDATED]: I have created a new view controller and embedded it in a navigation controller. It still happens on all the view controllers that i add new.