0

In iOS 8, when presenting an UIActivityViewController, trying to set status bar content light does not work. It shows black text.

I've tried:

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
[viewController presentViewController:activityViewController animated:YES
    completion:^{
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    [[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleLightContent animated:YES]; 
}];

View controller-based status bar appearance is set to NO in the plist.

Also tried this with no luck. It could very well be a bug, as I don't have this issue with MFMailComposeViewController.

Community
  • 1
  • 1
MobileMon
  • 7,249
  • 4
  • 46
  • 66
  • It is working for me. – gabbler Jan 11 '15 at 01:24
  • @gabbler Not working for me. I chose to hide the status bar for now, but ideally would like to unhide if this ever gets solved – MobileMon Jan 11 '15 at 15:49
  • I don't know what your project setting is, do you have `Status bar is initially hidden` being set in your plist file? I made a really simple project and it worked for me. Do you have a navigation bar? You might want to share more detail or maybe share a sample project if you really want it to be resolved. – gabbler Jan 11 '15 at 15:58

0 Answers0