2014-10-29 74 views

回答

1

如果你想显示自定义(或本地)活动的指标,那么你不需要自定义启动图像显示为启动画面的应用程序(这意味着无需添加Default.png | [email protected] (etc.)。但是,是的,你需要添加[email protected](可以通过它的XCode将自己添加),如果你打算支持iPhone5分辨率了。

  1. 添加UIViewController名为“SplashViewController”

  2. 在SplashViewController中添加一个UIImageView(作为子视图) - 您也可以通过编程添加它。 Cocoa Touch - Adding a UIImageView programmatically? - 这个问题可能会有帮助。

  3. 为其分配一个背景图像(它显示的是启动画面)。

  4. 在SplashViewController(作为子视图)中添加一个自定义(或本机)活动(进度)指示器 - 您也可以通过编程添加它。 Setting up an UIActivityIndicatorView for the UITableViewController programmatically - 这个问题可能会有帮助。

  5. 根据需要自定义指标。 (配置何时开始/停止?)。

  6. 你下载的东西,当它完成时,只需将根视图控制器更改为下一个视图控制器(你想要显示下载东西完成后)。 Programmatically change rootViewController of storyBoard - 这个问题可能会有帮助。