Hi,
 
If you want to hide status bar in your application then do following steps to achieve:
 
1- Go to info.plist file provided in left panel of your application.
2- Add a new key with name “View controller-based status bar appearance” and set it to NO.
3- Click on AppDelegate file and add
application.isStatusBarHidden = true.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        application.isStatusBarHidden = true
        return true
}
4- Now run the code. you’ll see that status bar is hidden now.
Thanks
-Sandeep
                       
                    
0 Comment(s)