Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A view controller cannot segue to another controller without presenting itself.
https://stackoverflow.com/questions/8221787/perform-segue-on-viewdidload
https://stackoverflow.com/questions/10428629/programatically-set-the-initial-view-controller-using-storyboards
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
let mainStoryboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
var exampleViewController: ExampleViewController = mainStoryboard.instantiateViewControllerWithIdentifier("ExampleController") as! ExampleViewController
self.window?.rootViewController = exampleViewController
self.window?.makeKeyAndVisible()
return true
}
https://stackoverflow.com/questions/32988241/how-to-access-launchenvironment-and-launcharguments-set-in-xcuiapplication-runn
https://stackoverflow.com/questions/30020578/cant-find-headers-for-googleanalytics-ios-sdk-with-cocoapods-0-37-swift-frame
https://forums.developer.apple.com/thread/13118
https://stackoverflow.com/questions/34340896/ios-ui-testing-on-an-isolated-view
https://stackoverflow.com/questions/31600777/xcode-ui-test-example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.