Last active
August 29, 2015 14:07
-
-
Save HiromichiYamada/ed125a8ec958cf1d0019 to your computer and use it in GitHub Desktop.
override initializers for swift with Xcode 6.0.1
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
// 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