Why do I see double status bars when starting my app?

妖精的绣舞 提交于 2019-12-24 03:14:32

问题


When starting my iPhone application, I'm seeing both the status bar from Default.png and the OS's built-in status bar, instead of just seeing the OS's status bar. What have I done wrong?


回答1:


Resize your Default.png to exactly 320x480.

If your Default.png is exactly 320x480, it will be displayed full screen layered below (in z-order) the status bar. (This means the user will see the real status bar, not the Default.png one.)

But if your Default.png is some other size, the iPhone OS will scale it and display it positioned under the OS's status bar. (This means the user will see the real status bar at full size, and the Default.png one scaled.)

Note: Apple's documentation specifically states the 320x480 size, leaving undocumented that it works at all with other image sizes, let alone this scaling behavior. So you probably shouldn't rely on this.



来源:https://stackoverflow.com/questions/1758376/why-do-i-see-double-status-bars-when-starting-my-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!