具有逻辑的 iOS 启动屏幕

标签 ios swift launch-screen

是否可以在 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/

相关文章:

ios - iOS 启动屏幕中的事件指示器没有动画

iphone - 在iPhone中检查日期是否在两天之间

ios - 如何获取 'react-native-cli' 以在指定硬件中运行我的应用程序?

swift - 无法运行模拟器 操作无法完成。 (LaunchServicesError 错误 0。)

swift - 将数据的排序列表保存到核心数据中

swift - SKAction 不适用于 overlaySKScene?

ios - 向启动屏幕添加额外的时间

ios - Core Graphics Context 似乎没有返回图像

android - Azure AD native 应用程序的名称和重定向 URL

javascript - 你如何在 React-Native 中为 android 制作启动/启动画面?