objective c - Change iOS7 Status Bar Colour programmatically, mid-run? -
Let's try to change the position bar color mid-run, i.e. when an administrator loads. I change the background color of the scene, so I have to change it from black to white and vice versa.
I know that I can change it by using Can I do this? Go to your application and add it as new line in Plist ; Color & amp; Add a toggle method Here is a sample screenshot When the menu is closed, the color is white < Img src = "https://i.stack.imgur.com/8hbeD.png" alt = "Enter image details here"> When the menu is open Color is black < / Ul> Hope that helps. preferredStatusBarStyle . And setting in plist, but as far as I can see it will only set the view controller to launch
@ Property (nonomatic) BOOL black; - (zero) toggle StatuSBar: (ID) sender {if (black) {[UIApplication shared application] setStatusBarStyle: Animated UIStatusBarStyleLightContent: Yes]; Black = no; } And {[UIApplication shared applicant] Setstats Bars Style: Uititas Bars Style Default Animated: Yes]; Black = yes; }}
Comments
Post a Comment