Is there a way to hide the status bar when showing splash screen in iPhone and then show again in application?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- back button text does not change
相关文章
- 现在使用swift开发ios应用好还是swift?
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- Popover segue to static cell UITableView causes co
On iOS 10 (beta 8) if
Status bar is initially hidden
key is set toYES
, splash view is displayed without status bar, and it becomes visible automatically after splash view disappears, no need to code.Note I'm using Apple's recommended way of showing a splash:
storyboard
, and not sure this will work with launch images.View -> Property List Type -> iPhone Info.plist. Now, make a new item with "Status bar is initially hidden" checked.
The correct key in .plist is "UIStatusBarHidden" and make checked right side.It'l become "Status bar is initially hidden" then automatically. In my practice, you can control the StatusBar's show/hide anywhere by when hide:
when show:
hope this was helpful to you.
Add
Status bar is initially hidden
toYES
in theinfo.plist
file. This worked for me.is deprecated
is the correct
UIStatusBarAnimation which can be:
UIStatusBarAnimationNone or UIStatusBarAnimationFade or UIStatusBarAnimationSlide
Following up Dave's answer the key "Status bar is initially hidden" didn't work for me under iOS 4.3 BUT the key "UIStatusBarHidden" and then setting it's type to Boolean and checking the box did the trick.
http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html#//apple_ref/doc/uid/TP40009254-SW4
This developer article got me onto the Info.plist keys and then working out the equivalent key for hiding it wasn't too hard.
Interestingly the "UIStatusBarStyle" needs to use the enumeration name as a string for it to work.