是否可以在 iOS 启动屏幕 Storyboard中构建一些逻辑?
我想要一个仅在用户第一次启动我的应用程序时显示标题的“启动”屏幕。
然后在后续启动中,我希望启动屏幕有一个空的导航 Controller 。
(如果有办法以编程方式/在 Storyboard/IB 之外执行此操作,我也很乐意这样做)。
谢谢
最佳答案
不,不可能。启动屏幕不是由您的应用呈现,而是由系统呈现,因此它是静态的。
Note that the launch screen is is not a fully customizable view controller. You cannot specify a custom class name in the storyboard and expect the system to give you the option to execute code at this stage by calling viewDidLoad. Remember, the app hasn’t launched yet.
(根据this site)
此外,您似乎无法以编程方式更改启动图像,如 this question 中所述。 .
关于具有逻辑的 iOS 启动屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43820589/