1

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.

Status bar issue

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.

View controller with new Navigation bar

ankit_rck
  • 1,796
  • 2
  • 14
  • 24

2 Answers2

0

Reset simulator settings that will do the trick

Edit 1

First clear that is it a code a error or SDK error if it is same in all project then it is SDK problem and if it is in only one project then it's a code error

Varun Naharia
  • 5,318
  • 10
  • 50
  • 84
  • Nothing happens, i am facing the same issue on iphone 6 device as well. Suprisingly it does not occur on iphone 5S and lower devices – ankit_rck May 13 '15 at 05:08
  • what it looks like in landscape mode ? – Varun Naharia May 13 '15 at 05:13
  • just one project with this and new view controllers. Existing view controllers are working fine – ankit_rck May 13 '15 at 06:04
  • I think your new view controller having same problem is child of `'this'` main controller, is it ??? have you tried creating new view controller that comes from `'working fine'` view controller ?? try to delete `"this"` view controller and create once again if that works then note down all the properties and `"ctrl-z"` to get old view controller and make the note down change – Varun Naharia May 13 '15 at 06:41
0

Status bar is displaying absolutely fine.. The issue is there with your view controller implementation..

Nilesh Patel
  • 6,318
  • 1
  • 26
  • 40