LoginSignup
0
0

More than 5 years have passed since last update.

xib利用 - (id)initWithCoder:(NSCoder *)aDecoder

Posted at

Objective-CでXibから初期化するとき
- (id)initWithCoder:(NSCoder *)aDecoderを利用した

Swiftでは
required init(coder aDecoder: NSCoder)を利用する。

違いはよく分からない、分かってる事は
Swiftだとreturnがないのと
required init(coder aDecoder: NSCoder)じゃなく
init(coder aDecoder: NSCoder)だと errorになるという事

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0