Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Last active September 7, 2016 13:04
Show Gist options
  • Save chelseatroy/a00cb75f83dfd4d10f091bab6b33be55 to your computer and use it in GitHub Desktop.
Save chelseatroy/a00cb75f83dfd4d10f091bab6b33be55 to your computer and use it in GitHub Desktop.
View Controller for Testing with Storyboard
class ExampleViewController: UITableViewController {
@IBOutlet var someTextLabel: UITextLabel!
class func loadFromStoryboard() -> ExampleViewController
{
let controller = UIStoryboard(name:"Main", bundle:NSBundle(forClass:self))
.instantiateViewControllerWithIdentifier("ExampleViewController")
as! ExampleViewController
return controller
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment