Peter V
Peter V

Reputation: 2488

Storyboard-set iOS 7 Status Bar not shown in right style

I have two Scenes in a Storyboard; a dark one and a light one.
Set to Default in the Simulated metrics' Status Bar section, the light scene's bar is dark and works correctly. The dark scene's is set the same way to Light Content style but it doesn't change.
No mention of the bar anywhere in the code itself, what's wrong?

Upvotes: 3

Views: 3584

Answers (1)

Helge Becker
Helge Becker

Reputation: 3243

The simulated metrics is only for XCode. You need to set this for the view in the views viewcontroller.

UIViewController:preferredStatusBarStyle

StackoverFlow question covering the same

Upvotes: 2

Related Questions