Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Last active September 7, 2016 13:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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