所以近 70 个应用程序之后我第一次尝试 Storyboard......
我想我已经掌握了基本的流程,有一个导航 Controller 堆栈,带有 segues 推送或模态显示下一个场景,然后从这些场景中展开。除了展开之外,所有这些都没有任何代码。
如何制作一个在 5 秒后自动过渡到下一个场景的闪屏(在 Default*.png 之后)? (最好尽可能多地在 Interface Builder 中完成)
最佳答案
- 设置场景并通过 Storyboard定义场景之间的转场
- 在每个 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/