Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Hide Status bar in iOS

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 545
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: