Method 1: Go to Your info.plist file.
Add a key called “View controller-based status bar appearance” and set its value to NO.
Method 2: Go to your app delegate and write this line of code.
UIApplication.shared.isStatusBarHidden = true
Example:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
UIApplication.shared.isStatusBarHidden = true
return true
}
2
Answers
Add View controller-based status bar appearance in .plist and set it to YES.
Method 1: Go to Your info.plist file.
Add a key called “View controller-based status bar appearance” and set its value to NO.
Method 2: Go to your app delegate and write this line of code.
Example: