如何设置闪屏显示时间?
可能的重复:
如何显示闪屏iPhone 上的时间更长?
如何设置闪屏显示时间?
Possible Duplicate:
How can I display a splash screen for longer on an iPhone?
How can I set the splash screen display time?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
阅读 Apple iPhone 人机界面指南 (HIG)。 “启动画面”不应该用于品牌推广或显示徽标,它应该看起来像应用程序的默认状态,因此它看起来可以快速启动。
让它在那里停留更长时间将违反 HIG。
http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/UEBestPractices/UEBestPractices.html#//apple_ref/doc/uid/TP40006556-CH20-SW1
iOS 应用程序应尽快启动,以便人们可以立即开始使用它们。启动时,iOS 应用程序应该:
显示与应用程序的第一个屏幕非常相似的启动图像。这种做法会减少应用程序的感知启动时间。
避免显示“关于”窗口或启动屏幕。一般来说,尽量避免提供任何类型的启动体验,以免人们立即使用您的应用程序。
Read the Apple iPhone Human Interface Guidelines (HIG). The "splash screen" isn't supposed to be for branding or displaying a logo, it's supposed to look like the default condition of the app so it appears to start up quickly.
Making it stay there for longer would be a violation of the HIG.
http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/UEBestPractices/UEBestPractices.html#//apple_ref/doc/uid/TP40006556-CH20-SW1
iOS applications should start as quickly as possible so that people can begin using them without delay. When starting, iOS apps should:
Display a launch image that closely resembles the first screen of the application. This practice decreases the perceived launch time of your application.
Avoid displaying an About window or a splash screen. In general, try to avoid providing any type of startup experience that prevents people from using your application immediately.
添加一个带有闪屏图像的 UIImageView 作为根视图控制器中的顶部视图。一旦真正的飞溅被移除,这个就会无缝显示。然后,您可以在设定的时间后将其删除,甚至可以添加一个不错的效果,例如淡出或动画效果。
Add a UIImageView with your splash screen image to be the top view in your root view controller. Once the real splash is removed, this one will displayed seamlessly. You can then remove it after a set time or even add a nice effect such as fading or animating it out.
在名为 Default.png 的资源文件中添加一张图片。在 [xxx]AppDelegate.m 中编写以下代码:
这就是您需要做的一切
add a picture in Resource file named Default.png. And in [xxx]AppDelegate.m write the following code:
That's everything you need to do