Last active
September 7, 2016 13:04
-
-
Save chelseatroy/a00cb75f83dfd4d10f091bab6b33be55 to your computer and use it in GitHub Desktop.
View Controller for Testing with Storyboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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