I wish to auto-segue from the main viewController to a second view controller after a set period of time after an app loads.
How do I do this?
Do I need to
You can use this snippet of code:
let delay = 1 // Seconds
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(delay * NSEC_PER_SEC)), dispatch_get_main_queue()) {
self.launchMainUI()
return
}
which performs the launchMainUI method after delay seconds. Replace it with your own implementation, where you instantiate your view controller and present it, or simply invoke a segue.