0

i was create the app for target for iphone in ios7. but when i tested that app into ipad then statusbar not hidden. in iphone its hide but not into ipad. please help me. i set the below code on my app. i set this to appdelegate. but its not hide the statusbar for ipad.

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];

i also set the View controller-based status bar appearance to NO and Status bar is initially hidden to YES into info.plist file.

Jashu
  • 13
  • 4

1 Answers1

0

Your code is correct, but since iOS 7 the iPad works slightly different with iPhone compatibility mode: the status bar is always visible, and there is no longer a 2x button to show the interface "zoomed in".

Even though your code will work fine on iPhone, the iPad will always display the status bar on iPhone apps.

Jay Versluis
  • 2,062
  • 1
  • 19
  • 18
  • thanks jay. i think it is right with ios7 specially. thanks again. – Jashu Jul 21 '14 at 05:28
  • i think its fine with ios6 but not into ios7. – Jashu Jul 21 '14 at 05:30
  • is any possibity for ipad to hide statusbar in ios7? – Jashu Jul 21 '14 at 11:30
  • Only if your app has an iPad interface or if it's universal. See here: http://stackoverflow.com/questions/18059703/cannot-hide-status-bar-in-ios7 and http://stackoverflow.com/questions/17763719/status-bar-wont-disappear – Jay Versluis Jul 22 '14 at 02:18