Search code examples
c++ioscocos2d-xstatusbar

Hide status bar during slash screen in cocos2d-x


I am working on an app using cocos2d-x v2.2.3 for iOS (in C++) and currently trying to hide the status bar when the splash screen is being shown.

I have:

1) Added "View controller-based status bar appearance" -> NO to ios/Info.plist

2) Added setStatusBarHidden code to rootviewController (http://www.cocos2d-x.org/forums/6/topics/29675)

but none of them seem to work. Any ideas as to how I can get this to work? Currently using Xcode 5.1


Solution

  • Set YES for this key in info.plist "UIStatusBarHidden"

    If you want to hide or unhide after also then you have to follow bit different procedure for iOS 7