Skip to content

Instantly share code, notes, and snippets.

@HiromichiYamada
Last active August 29, 2015 14:07
Show Gist options
  • Save HiromichiYamada/ed125a8ec958cf1d0019 to your computer and use it in GitHub Desktop.
Save HiromichiYamada/ed125a8ec958cf1d0019 to your computer and use it in GitHub Desktop.
override initializers for swift with Xcode 6.0.1
// Xcode 6.0.1
class MyInitViewController: UIViewController {
override init() {
// init parameters here.
super.init()
}
required init(coder aDecoder: NSCoder) {
// init parameters here.
super.init( coder:aDecoder )
println("init -- \(__FUNCTION__)")
}
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
// init parameters here.
super.init( nibName:nibNameOrNil, bundle:nibBundleOrNil )
println("init -- \(__FUNCTION__)")
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment