Skip to content

Instantly share code, notes, and snippets.

@hamada-lemois
Created April 11, 2015 08:29
Show Gist options
  • Select an option

  • Save hamada-lemois/883d09a917ce9e9bc7db to your computer and use it in GitHub Desktop.

Select an option

Save hamada-lemois/883d09a917ce9e9bc7db to your computer and use it in GitHub Desktop.
Subclassing UIViewController
import UIKit
class ViewController: UIViewController {
required init(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
override init(nibName nibNameOrNil: String!, bundle nibBundleOrNil: NSBundle!) {
super.init(nibName: nil, bundle: nil)
}
convenience init() {
self.init(nibName: nil, bundle: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment