gpt4 book ai didi

ios - 如何在所有其他 View 之前模态显示 'launch view'?

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:55:06 26 4
gpt4 key购买 nike

在我基于标签栏的应用程序中,我需要呈现一个“启动 View ”,它扮演着启动图像的角色。它包含一个显示多个图像的 ScrollView 。由于它不属于基于主要标签栏的体系结构,因此我想以模态方式展示它。

现在我的问题是在哪里启动它。我运行 [self.window.rootViewController presentModalViewController:launchViewController animated:YES];[self.window makeKeyAndVisible]; 之后 - (BOOL)application :(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 方法。

它有效,但主选项卡栏 View 将在“启动 View ”出现之前不久出现。我需要在所有其他 View 之前显示“启动 View ”。

最佳答案

模态呈现在

- (void)viewDidAppear:(BOOL)animated

你的 Root View Controller 。

同样在没有动画的情况下呈现它 - 它会在短时间内阻止显示标签栏。

[self presentModalViewController:launchViewController animated:NO];

关于ios - 如何在所有其他 View 之前模态显示 'launch view'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7887029/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com