iPhone SDK:启动我的应用程序时避免黑屏 [英] iPhone SDK: Avoid Blank screen while launching my application

查看:42
本文介绍了iPhone SDK:启动我的应用程序时避免黑屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动应用程序本身时,我正在从服务器中检索一些数据.因此,每当启动我的应用程序时,它都会显示空白屏幕几秒钟(表示它正在从服务器下载数据),然后启动第一个视图.我不想向用户显示空白屏幕.我想在那里添加图像和活动指示器.请引导我正确的方向来完成此任务.

I am retrieving some data from server when launching my application itself. So whenever launch my application it shows a blank screen for few seconds(means it is downloading data from server) and then launches the first view. I don't want to show the blank screen to user. I want to add an image and activity indicator there. Please route me into right direction to capture this task.

感谢您的帮助.

谢谢.

Clave/

推荐答案

在文件(MainBundle)中放置一个文件名为"Default.png"的图片,该图片会在您的应用程序首次调用之前显示.之后,您可以在下载数据时显示相同的图像或显示该图像以及一个动画进度条.

Put an image in your resources (MainBundle) with the filename of "Default.png" and that gets displayed before your app even gets the first call. After that, you can either display the same image or display that and an animated progress bar as you download your data.

这篇关于iPhone SDK:启动我的应用程序时避免黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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