OGeek|极客世界-中国程序员成长平台

标题: ios - 在 App Delegate 中启动时显示加载屏幕 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 13:14
标题: ios - 在 App Delegate 中启动时显示加载屏幕

我正在构建一个应用程序,它需要在启动时从 XML 文件加载信息。

我在 AppDelegate 类的 didFinishLaunchingWithOptions 方法中调用 fetching 方法:

- (BOOL)applicationUIApplication *)application 
        didFinishLaunchingWithOptionsNSDictionary *)launchOptions {
   [self fetch];    
   return true;
}

但我想在应用午餐时显示一张图片,并且我希望它在 fetch 方法完成时消失。

非常感谢任何帮助!



Best Answer-推荐答案


Here is a blog也一样。它在窗口上加载图像执行操作,然后将其删除。

您还可以创建一个 SplashViewContrller,使其成为您的图像的第一个 View Controller ,加载您的 xaml,并在加载完成后为您提供带有动画的新 Controller NO

关于ios - 在 App Delegate 中启动时显示加载屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17984776/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4