You really should implement prefersStatusBarHidden on your view controller(s):
Swift 3 and later
override var prefersStatusBarHidden: Bool {
return true
}
More Related Contents:
- How to use NSUnderlineStyle.PatternDot
- How to make UI with round image and round text, also add ratting icon on same circle. in iOS application
- How do I make an HTTP request in Swift?
- Save images in NSUserDefaults?
- Imitate Facebook hide/show expanding/contracting Navigation Bar
- Replacement for deprecated -sizeWithFont:constrainedToSize:lineBreakMode: in iOS 7?
- Detect current device with UI_USER_INTERFACE_IDIOM() in Swift
- How do you create a Swift Date object?
- How to increase the height of navigation bar in Xcode?
- ViewDidAppear is not called when opening app from background
- UIImagePickerController error: Snapshotting a view that has not been rendered results in an empty snapshot in iOS 7
- How to Edit Empty Spaces of Left, Right UIBarButtonItem in UINavigationBar [iOS 7]
- How to detect when AVPlayer video ends playing?
- Swift default AlertViewController breaking constraints
- Adding Navigation Bar programmatically iOS
- What is export * in module.modulemap file inside each framework?
- When to use takeUnretainedValue() or takeRetainedValue() to retrieve Unmanaged Objects in Swift?
- Simple and clean way to convert JSON string to Object in Swift
- Changing the height of the Navigation bar iOS Swift
- ‘Receiver () has no segue with identifier ‘addSegue’
- Change button background color using swift language
- SwiftUI: Set Status Bar Color For a Specific View
- Swift – Downloading video with downloadTaskWithURL
- How to remove border of the navigationBar in swift?
- The app delegate must implement the window property if it wants to use a main storyboard file swift
- iOS app testing. App installation failed. No code signature found [closed]
- Xcode error while validation – “Your binary is not optimized for iPhone 5”
- SwiftUI: Error in dragging logic or is this a bug?
- uicollectionview remove top padding
- How to make iPhone vibrate using Swift?