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

C58d9fc209cfdc0b822f851911110fa6?s=47 coe
September 25, 2019

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

About required init?(coder: NSCoder)

C58d9fc209cfdc0b822f851911110fa6?s=128

coe

September 25, 2019
Tweet

Transcript

  1. GBUBM&SSPS JOJU DPEFS IBT OPUCFFOJNQMFNFOUFE QPUBUPUJQT೔޲ڧ

  2. ࣗݾ঺հ w ೔޲ڧʢ5TVZPTIJ)ZVHBʣ w גࣜձࣾ"NB[JB w !DP⒎FFHZVOZV w J1IPOF04ʙ w

    "OESPJE%POVUʙ w J04%$Ͱ#MVFUPPUIʹ ͍ͭͯ࿩͓͢͡͞Μ
  3. None
  4. ίʔυͰ6*7JFX$POUSPMMFS ࡞ͬͨ͜ͱ͋Δਓʂ

  5. 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") } }
  6. required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") }

  7. SFRVJSFEJOJU DPEFS

  8. SFRVJSFEJOJU DPEFS w ίʔυ্ͰΠχγϟϥΠβΛ࣮૷͢Δͱɺ࣮૷Λڧཁ͞Ε Δ w 4UPSZCPBSEΛ࢖Θͳ͍৔߹ɺGBUBM&SSPSͷ··Ͱେৎ෉

  9. SFRVJSFEJOJU DPEFS w ίʔυ্ͰΠχγϟϥΠβΛ࣮૷͢Δͱɺ࣮૷Λڧཁ͞Ε Δ w 4UPSZCPBSEΛ࢖Θͳ͍৔߹ɺGBUBM&SSPSͷ··Ͱେৎ ෉

  10. ҧ͍·͢

  11. 4UPSZCPBSEΛ࢖Θͣͱ΋ JOJU DPEFS  ͕࢖ΘΕΔ৔߹͕͋Γ·͢

  12. ͳͷͰ

  13. ίʔυͰ΋JOJU DPEFS Ͱམͪ·͢

  14. 4UPSZCPBSE೿େউར

  15. 4UPSZCPBSE೿େউར

  16. SFRVJSFEJOJU DPEFS SFRVJSFEJOJU DPEFS Λ࣮૷͠ͳ͍৔߹ɺ୯ʹ TVQFSJOJU DPEFS ΛݺΜͰ͍Δ͚ͩͳͷͰɺͦΕͰ͸ҙ ຯ͕ͳ͍৔߹͕͋Γ·͢

  17. JOJU DPEFS ͱ͸ w /4$PEJOHద߹Ϋϥε 6*7JFX$POUSPMMFS ͕࣮૷͠ͳ͚ Ε͹ͳΒͳ͍΋ͷͰ͢ w ΞʔΧΠϒʹ֨ೲ͞ΕͨΦϒδΣΫτ͔ΒɺݩͷΦϒδΣ

    Ϋτʹ໭࣌͢ɺJOJU DPEFS ͕࢖ΘΕ·͢
  18. 4UPSZCPBSE͔Β JOJU DPEFS

  19. /4,FZFE"SDIJWFS͔Β FODPEF XJUIDPEFS JOJU DPEFS w ΞʔΧΠϒʹ֨ೲ͞ΕͨΦϒδΣΫτ͔ΒɺݩͷΦϒ δΣΫτʹ໭࣌͢ɺJOJU DPEFS ͕࢖ΘΕ·͢

  20. 3FTUPSBUJPO͔Β FODPEF3FTUPSBCMF4UBUF XJUIDPEFS JOJU DPEFS w ϦετΞΛ࣮૷͢ΔͱɺϗʔϜʹ໭ΔͨͼʹΞʔΧΠϒ͕ ࡞ΒΕɺΞϓϦ͕,JMM͞Εͨ৔߹΋લͷঢ়ଶͰ෮ݩͰ͖·͢

  21. JOJU DPEFS ͱ͸ w /4$PEJOHద߹Ϋϥε 6*7JFX$POUSPMMFS ͕࣮૷͠ͳ͚ Ε͹ͳΒͳ͍΋ͷͰ͢ w ΞʔΧΠϒʹ֨ೲ͞ΕͨΦϒδΣΫτ͔ΒɺݩͷΦϒδΣ

    Ϋτʹ໭࣌͢ɺJOJU DPEFS ͕࢖ΘΕ·͢ w ͳͷͰɺJOJU DPEFS Ͱ͸ɺΞʔΧΠϒલͷঢ়ଶʹ໭͢ ॲཧ͕ඞཁʹͳΓ·͢
  22. ·ͱΊ w SFRVJSFEJOJU DPEFS ͸4UPSZCPBSE͚ͩͷ΋ͷͰ͸͋ Γ·ͤΜ

  23. IUUQTRJJUBDPNDPFJUFNTFDGEEBE