iPhone-SDK:启动期间的活动指示器? [英] iPhone-SDK:Activity Indicator during Startup?

查看:74
本文介绍了iPhone-SDK:启动期间的活动指示器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目中有一个Default.png文件,因此只要我的应用程序启动Default.png文件,就会在那里加载。由于我的应用程序在启动时(应用程序启动)从服务器检索数据,我想在Default.png文件加载时显示活动指示器。是否可以一次激活该过程,我的意思是在启动期间一次显示Default.png并启用活动指示器?
但我尝试将活动指示器代码放在'applicationDidFinishLaunching'中,但在显示Default.png文件时它没有显示活动指示器。但我确信活动代码我所拥有的,在其他屏幕上工作正常。问题仅在应用启动期间。

I am having a Default.png file in my project, so that whenever my app launches Default.png file loads there. As my app is retrieving data from server at startup(app launch), i want to show activity indicator as well while Default.png file is loading. Is it possible to activate both the process at a time, i mean showing Default.png and enable activity indicator at a time during startup? But i tried putting Activity Indicator code in 'applicationDidFinishLaunching' but it doesn't show activity indicator at the time of showing Default.png file. But i am sure that Activity code what i have, is working fine on other screens. Problem is only during app launch.

有人可以分享您的想法吗?

Can someone share your ideas please?

谢谢。

Clave /

推荐答案

你不能在Default.png中做任何动画图片。您应该使用视图/控制器(包含活动指示器)尽快替换它。比显示控制器后,加载您的数据和可能的其他控制器(在线程中)。

You can't do any animation in the Default.png image. You should replace it as soon as possible with a view/controller (containing the activity indicator). Than after showing that controller, load your data and possibly an other controller (in a thread).

这篇关于iPhone-SDK:启动期间的活动指示器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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