Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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