Skip to content

Instantly share code, notes, and snippets.

@chareice
Created February 8, 2014 06:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chareice/8877624 to your computer and use it in GitHub Desktop.
Save chareice/8877624 to your computer and use it in GitHub Desktop.
Hide Status Bar in rubymotion
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
UIApplication.sharedApplication.setStatusBarHidden(true, withAnimation:UIStatusBarAnimationNone)
true
end
end
app.info_plist['UIStatusBarStyle'] = 'UIStatusBarStyleBlackTranslucent'
app.info_plist["UIViewControllerBasedStatusBarAppearance"] = false
@sobstel
Copy link

sobstel commented Jul 9, 2016

It doesn't work for iOS 9 anymore. Now it should be:

Rakefile

app.info_plist['UIStatusBarHidden'] = true

Controller/screen

def prefersStatusBarHidden
  true
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment