0
votes

I want the status bar hidden in my app. In my pList I have set: Status Bar is initially hidden - YES View controller-based status bar appearance - NO

This works fine until I present an UIImagePickerController. It wants to show the status bar. So in willShowViewController for the navigationController delegate I call [[UIApplication sharedApplication] setStatusBarHidden:YES]. This does in fact hide the status bar but there is a shifting like an animation in the navigationController. I've spent some time trying to stop this animation. Anyone have any ideas how to stop it? Thanks.

3

3 Answers

0
votes

Try it

 [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
0
votes

Subclass UIImagePickerController and define prefersStatusBarHidden method, return YES if you want to hide a status bar.

0
votes

It turns out that this a bug in iOS 8. I filed a radar bug and Apple suggested I try the beta 8.3. With the beta I no longer see the animation.