我在info.plist中为iPhone 5 Retina 4“添加了启动画面。启动画面后的视图与启动画面具有相同的背景图像。但是当我启动应用程序时,看起来第一个视图背景图像正在向下移动。我尝试了所有案例隐藏状态栏并取消隐藏它也在启动时尝试隐藏状态栏但没有任何对我有用。任何人都有任何想法。
You can set the background position to -statusbar.height
(eg: -20), so that it matches the position of the splash.
If you want to hide the status bar, you also need to set [self setWantsFullScreenLayout:YES];
in your view controller, otherwise the space for the status bar may remain unoccupied.
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.