2014-10-29 72 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 - 這個問題可能會有幫助。