When I run the simulator, the app opens really quickly so it's impossible to see the launch image.
当我运行模拟器时,应用程序会很快打开,因此无法看到启动图像。
3 个解决方案
#1
12
Set a breakpoint to the 1st line of your application:didFinishLaunchingWithOptions:
delegate method. Or better yet, inside main
.
将断点设置为应用程序的第1行:didFinishLaunchingWithOptions:delegate方法。或者更好的是,在主要内部。
This will pause the app before showing your user interface and allow you to see the launch screen.
这将在显示您的用户界面之前暂停应用程序,并允许您查看启动屏幕。
#2
1
- Launch iOS simulator
- Enable slow animations (
⌘
+T
) - Launch your app.
- Blink slowly
启动iOS模拟器
启用慢动画(⌘+ T)
启动您的应用。
#3
1
Set below code 1st line of your application:didFinishLaunchingWithOptions:
在应用程序的第一行下面设置:didFinishLaunchingWithOptions:
sleep(delay); // delay int value
#1
12
Set a breakpoint to the 1st line of your application:didFinishLaunchingWithOptions:
delegate method. Or better yet, inside main
.
将断点设置为应用程序的第1行:didFinishLaunchingWithOptions:delegate方法。或者更好的是,在主要内部。
This will pause the app before showing your user interface and allow you to see the launch screen.
这将在显示您的用户界面之前暂停应用程序,并允许您查看启动屏幕。
#2
1
- Launch iOS simulator
- Enable slow animations (
⌘
+T
) - Launch your app.
- Blink slowly
启动iOS模拟器
启用慢动画(⌘+ T)
启动您的应用。
#3
1
Set below code 1st line of your application:didFinishLaunchingWithOptions:
在应用程序的第一行下面设置:didFinishLaunchingWithOptions:
sleep(delay); // delay int value