0
A
回答
1
你想要做的就是所謂的閃屏是什麼, 見App Launch (Default) Images 或涉及本guide
1
使用此
[self performSelector:@selector(loadMainView) withObject:nil afterDelay:3.0];
與loadMainView
方法,你應該開始設定通常的看法
0
我通常通過創建一個視圖控制器來實現這一點,該視圖控制器在視圖中具有啓動圖像的UIImageView。
使用模式
您可以將其顯示爲以這種方式你RootViewController的頂部的模式視圖控制器。 在AppDelegate中的application:didFinishLaunchingWithOptions:
通過調用
// rootViewController is the view controller attached to the UIWindow
[rootViewController presentViewController:imageViewController animated:NO completion:nil];
的imageViewController內呈現模式,你可以這樣做:
- (void)dismiss {
// You can animate it or not, depending on your needs
[self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
}
- (void)viewDidApper {
[self performSelector:@selector(dismiss) withObject:nil afterDelay:AMOUNT_OF_TIME];
}
作爲一個UINavigationController堆棧
的第一控制器沒有按類似的方式不涉及模式是在您的UINavigationController中推送此視圖控制器(如果您使用它)
在AppDelegate中的application:didFinishLaunchingWithOptions:
你必須有這樣的事情
UINavigationController * navController = [[UINavigationController alloc] initWithRootViewController:imageViewController];
self.window.rootViewController = navController;
[self.window makeKeyAndVisible];
裏面的imageViewController你可以做到這一點設置導航控制器的第一控制器:
- (void)dismiss {
// Here you should init your nextViewController, the real "home" of the app
....
// Then you can present it. You can animate it or not, depending on your needs.
// I prefer to replace the whole stack, since user shouldn't go back to the image screen.
[self.navigationController setViewControllers:@[nextViewController] animated:YES];
}
- (void)viewDidApper {
[self performSelector:@selector(dismiss) withObject:nil afterDelay:AMOUNT_OF_TIME];
}
相關問題
- 1. 顯示ID內的第一個圖像
- 2. 在css中顯示第一個圖像?
- 3. 顯示圖像第二版
- 4. 在IOS中顯示圖像
- 5. iOS Launchscreen.storyboard圖像未顯示
- 6. 在iOS中顯示圖像
- 7. iOS會像鎖屏一樣顯示鎖定/解鎖滑塊嗎?
- 8. 下一個視圖第一次顯示錯誤的圖像
- 9. dataGridView圖像不顯示第一行,第二個單元格
- 10. iOS 6 presentviewcontroller顯示黑屏
- 11. iOS第二屏
- 12. 從剪貼板獲取圖像 - 顯示屏幕截圖時顯示黑屏?
- 13. 不圖庫視圖顯示第一圖像
- 14. 如何以全屏顯示圖像?
- 15. 我想全屏顯示背景圖像
- 16. 屏蔽圖像不顯示在AS3中
- 17. 通過Android adb顯示圖像全屏
- 18. 在java中以全屏顯示圖像
- 19. 原始圖像在屏幕上顯示
- 20. 背景圖像未全屏顯示
- 21. JLabel在屏幕上不顯示圖像
- 22. 點擊離子顯示全屏圖像
- 23. 全屏顯示圖像點擊它
- 24. 從gridView全屏顯示圖像
- 25. 地圖不顯示第一次在屏幕
- 26. iOS如何放大非全屏啓動圖像以將其顯示爲全屏啓動圖像
- 27. rst2odt沒有顯示第三個圖像
- 28. 顯示圖像第一個結果MVC3剃刀視圖的值
- 29. jQuery的 - 分組圖片廊[第一圖像無顯示]
- 30. UICollectionView不顯示iOS 10中的圖像
只有使用[標籤:Xcode中]標籤有關IDE本身的問題。 – Undo 2013-04-07 01:40:28