gpt4 book ai didi

iOS Storyboard : Automatic transition from one scene to another after 5 seconds

转载 作者:行者123 更新时间:2023-11-29 12:54:02 24 4
gpt4 key购买 nike

所以近 70 个应用程序之后我第一次尝试 Storyboard......

我想我已经掌握了基本的流程,有一个导航 Controller 堆栈,带有 segues 推送或模态显示下一个场景,然后从这些场景中展开。除了展开之外,所有这些都没有任何代码。

如何制作一个在 5 秒后自动过渡到下一个场景的闪屏(在 Default*.png 之后)? (最好尽可能多地在 Interface Builder 中完成)

最佳答案

  1. 设置场景并通过 Storyboard定义场景之间的转场
  2. 在每个 View Controller 中,设置一个 NSTimer 以在 5 秒后调用以下方法:

-(void)performSegueWithIdentifier:(NSString *)identifier sender:(id)sender

关于iOS Storyboard : Automatic transition from one scene to another after 5 seconds,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21618940/

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