How to cover also the UIStatusBar with UIView when i cover all the screen with the UIView?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- C# Winform 当开启Mosaic 模式后,怎么获取显示器的数量?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
The best thing you can do is hide the status bar with:
and show it again when you need it.
You can basically
removeFromSuperview
any time you want to remove the view.I was battling how to do this for a long time too! Finally figured it out :) The key is to set the windowLevel of your new window to really high so it lives on top of all the other windows/views/statusbar etc:
Enjoy!
If you're trying to create a
UIAlertView
-like effect, I don't think you can do this. You might file a feature enhancement request with Apple at http://bugreporter.apple.com.Nice, but I made these two changes. Adding 1.0 to UIWindowLevel still hides the status bar, and I have no idea why.
Setting the Statusbar userInteractionEnabled property to NO will ensure that your scroll views will scroll to top when someone taps on this statusbar.