Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocos2d games in iOS7 not hide status bar

How to hide status bar in cocos2d iOS7 games? This problem is not observed in iOS6 and below.

[[UIApplication sharedApplication] setStatusBarHidden: YES];

What's iOS7 alternative for this ?

like image 633
iPhoneChip Avatar asked Dec 12 '22 11:12

iPhoneChip


2 Answers

Its simple...…add below line in info.plist

View controller-based status bar appearance  NO

ScreenShot: enter image description here

like image 190
Guru Avatar answered Jan 14 '23 18:01

Guru


The same problem, fixed with

- (BOOL)prefersStatusBarHidden { return YES; }

like image 36
Jiří Zahálka Avatar answered Jan 14 '23 18:01

Jiří Zahálka