• Home
  • About
  • Our Apps
  • Learn
  • Contact
Login

Register

Login
Seemu Apps Seemu Apps
  • Home
  • About
  • Our Apps
  • Learn
  • Contact

Tutorial – Hide Status Bar Programmatically

Home ios Tutorial – Hide Status Bar Programmatically

Tutorial – Hide Status Bar Programmatically

Mar 2, 2016 | Posted by Andrew | ios, swift, tutorial, xcode |

Hiding the status bar in iOS using Swift is easy with one line of code. Simply insert the following line of code into your view controller:

    override var prefersStatusBarHidden: Bool {
        return true
    }

And then run your app, the status bar will now be hidden in the class you put this code in! You can see below the results of this line of code.

From this:

status

To This:

nostatus

DownloadSourceCode

 

Tags: hidestatusstatus bar
0
Share

About Andrew

Andrew is a 24 year old from Sydney. He loves developing iOS apps and has done so for two years.

You also might be interested in

Tutorial – Set Status Bar Style

Mar 21, 2016

You can simply set the Status Bar Color in XCode using[...]

Welcome

Hi I am Andrew and welcome to Seemu Apps! Have a look around, we provide tutorials for primarily iOS apps.
Bluehost website hosting discount

Seemu’s Studio Setup

Blue Yeti Microphone
Rode Stand
Spider Shock Mount
Mac Keyboard Cover
Screenflow - recording software

Contact Us

We're currently offline. Send us an email and we'll get back to you, asap.

Send Message

Footer

:)

© 2025 · Your Website. Theme by HB-Themes.

  • Home
  • About
  • Our Apps
  • Learn
  • Contact
Prev Next