iOS Default.png状态栏未绘制 [英] iOS Default.png status bar not drawn over

查看:43
本文介绍了iOS Default.png状态栏未绘制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能很简单,但是我的Default.png文件有问题.我使用XCode组织者创建了它以截取屏幕截图,并将其分配为Default图像.根据这篇文章(创建Default.png的最佳方法iPhone应用程序的图片),iOS应该在我的Default.png的状态栏上方绘制真实的状态栏,但这没有发生;它显示两个状态栏彼此堆叠,直到应用程序完全加载并且一切正常为止.这令人分心,而且看起来很胡扯.

This is probably something simple but I'm having a problem with my Default.png file. I created it using the XCode organizer to take a screenshot and having it assign it as the Default image. According to this post (Best way to create Default.png image for iPhone app) iOS is supposed to draw the real status bar over top of the status bar in my Default.png but that's not happening; it shows two status bars stacked on top of each other until the app completely loads and everything is normal. This is distracting and obviously looks like crap.

我尝试在启动期间隐藏状态栏,并在application:didFinishLaunchingWithOptions:期间重新启用它,但是Default.png中的状态栏仍然位于顶部.

I've tried hiding the status bar during startup and reenabling it during application:didFinishLaunchingWithOptions: but the status bar in my Default.png is still at the top.

我确定这很简单,但我无法弄清楚.

I'm sure it's something simple but I can't figure it out.

推荐答案

显然,XCode屏幕截图工具所截取的屏幕截图太高了,可以安全地修剪顶部.我使用Seashore将状态栏从图片上剪下,现在一切都很好.

Apparently the XCode screenshot tool takes a screenshot that's conveniently just a little too tall, making it safe to trim off the top. I cut the status bar out of the picture using Seashore and it's all good now.

这篇关于iOS Default.png状态栏未绘制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆