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

标签 ios uistoryboard uistoryboardsegue

所以近 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/

相关文章:

android - ionic 闪屏尺寸

ios - 如何从 CollectionView 中的特定索引开始

iphone - 根据设备类型选择不同的 Storyboard

iOS - 转场和静态单元格

ios - 获取对容器 View View 的引用

iphone - 有谁知道如何解决从 UIModalTransitionStylePartialCurl segue 退出时未触发 viewDidAppear 的问题?

ios - 删除连字符后的字符串

ios - 根据 UIScrollView 的中心点在 UIScrollView 中找到 CGPoint of View

ios - 自动布局在 iPhone 6s Plus 中无法按预期工作

ios - Storyboard设置的 iOS 7 状态栏未以正确的样式显示