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

iO

Yuka Ezura
November 20, 2016
70

 iO

Yuka Ezura

November 20, 2016
Tweet

Transcript

  1. Error ਺ 0 200 400 600 800 ೔਺ 1 2

    3 4 5 6 7 8 9 Τϥʔ਺ (ୀࣾ࣌఺)
  2. Կ͕͋ͬͨͷ͔ • Ұ౓ʹΤϥʔΛݕग़Ͱ͖ͳ͍ • ίϯόʔδϣϯπʔϧ͕·ͱ΋ʹಈ͔ͳ͍ • Swift ͱ Objective-C ͷ࿈ܞͷมߋ༝དྷͰɺةݥͳ

    ෦෼͕͋Δ • ϥΠϒϥϦ෦෼ͷมߋ͸શͯࣗ෼Ͱ • ϥϯλΠϜΤϥʔɺҙਤ͠ͳ͍ڍಈͷରԠ
  3. Կ͕͋ͬͨͷ͔ • Ұ౓ʹΤϥʔΛݕग़Ͱ͖ͳ͍ • ίϯόʔδϣϯπʔϧ͕·ͱ΋ʹಈ͔ͳ͍ • Swift ͱ Objective-C ͷ࿈ܞͷมߋ༝དྷͰɺةݥͳ

    ෦෼͕͋Δ • ϥΠϒϥϦ෦෼ͷมߋ͸શͯࣗ෼Ͱ • ϥϯλΠϜΤϥʔɺҙਤ͠ͳ͍ڍಈͷରԠ
  4. Error ਺ 0 200 400 600 800 ೔਺ 1 2

    3 4 5 6 7 8 9 Τϥʔ਺ (ୀࣾ࣌఺)
  5. Swift2 Ͱॻ͍͍ͯΔਓ • Swift ίʔσΟϯάΨΠυϥΠϯʹଇͬͯॻ͍͓ͯ ͖·͠ΐ͏ • Objective-C ͱͷ࿈ܞͰ IUO

    Λ࢖Θͣ Optional Ͱ ѻ͏Α͏ʹ͠·͠ΐ͏
 (nullability ΞϊςʔγϣϯΛࢦఆ͍ͯ͠ͳ͍৔߹) • RxSwift ͷഇࢭ༧ఆͷϝιου (`onNext` ౳) Λ࢖Θ ͳ͍Α͏ʹ͠·͠ΐ͏
  6. ϥϯλΠϜΤϥʔ • NSURL ͱ URL • Objective-C ͷδΣωϦοΫܕʹ Swift ͔ΒΞΫηε


    (Swift2 Ͱ͸େৎ෉ͩͬͨ…) • Objective-C Realm ࢮ͢
 (ݹ͍όʔδϣϯͩͬͨͷ΋ཁҼ) • ϚΠάϨʔγϣϯπʔϧ͕ͱΓ͋͑ͣ `!` ͚ͭͯͨ