Upgrade to Pro — share decks privately, control downloads, hide ads and more …

fatalError("init(coder:) has not been implement...

coe
September 25, 2019

fatalError("init(coder:) has not been implemented")

About required init?(coder: NSCoder)

coe

September 25, 2019
Tweet

More Decks by coe

Other Decks in Technology

Transcript

  1. class ViewController: UIViewController { let id:String? init(id:String?) { self.id =

    id super.init(nibName: nil, bundle: nil) } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } }
  2. JOJU DPEFS ͱ͸ w /4$PEJOHద߹Ϋϥε 6*7JFX$POUSPMMFS ͕࣮૷͠ͳ͚ Ε͹ͳΒͳ͍΋ͷͰ͢ w ΞʔΧΠϒʹ֨ೲ͞ΕͨΦϒδΣΫτ͔ΒɺݩͷΦϒδΣ

    Ϋτʹ໭࣌͢ɺJOJU DPEFS ͕࢖ΘΕ·͢ w ͳͷͰɺJOJU DPEFS Ͱ͸ɺΞʔΧΠϒલͷঢ়ଶʹ໭͢ ॲཧ͕ඞཁʹͳΓ·͢