简体   繁体   中英

iPad iOS 7 - How to get rid of the empty place for status bar in iPhone app?

When I run my iPhone app on an iPad, there's a black bar at the top of the screen where the status bar would be on an iPhone. In iOS 7 the status bar is no longer off-limits to the app's screen real estate (and indeed Apple is pushing us to use this space), yet my iOS-7 iPad still leaves the black bar.

Is there any way to get the content that would show under the status bar on an iPhone to show when the app runs on iPad?

In my case, there is a black bar without content on top of the iPhone app area when using ios 7 iPad.

I delete all setStatusBarHidden function and no more strange bar.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM