Skip to content

Instantly share code, notes, and snippets.

@fulldecent
Created February 18, 2016 21:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fulldecent/529849bc5dd4464bbde2 to your computer and use it in GitHub Desktop.
Save fulldecent/529849bc5dd4464bbde2 to your computer and use it in GitHub Desktop.
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