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

CoreDataはじめました

toshi0383
October 24, 2024

 CoreDataはじめました

集まれSwift好き!Swift愛好会 vol.85 @株式会社タイミー
https://love-swift.connpass.com/event/333348/

toshi0383

October 24, 2024
Tweet

More Decks by toshi0383

Other Decks in Technology

Transcript

  1. [ௐࠪ] 58छྨͷσʔλఆٛͷ໨త • ࡶͳAPIϨεϙϯεΩϟογϡʢKey -> JSONจࣈྻʣ • தن໛(1000݅~)ͷCRUDॲཧ • ֶश෼ੳσʔλͷ·͋·͋ෳࡶͳूܭॲཧ

    • ղ౴ཤྺσʔλͷ஝ੵͱදࣔ • ΞΧ΢ϯτಉظͷͨΊͷಡΈग़͠ͱɺαʔόʔ΁ૹ৴ϑϥάͷ؅ཧ • ·ͩଞʹ΋͋Γͦ͏
  2. AIʹؙ౤͛νϟϨϯδ ׂͱແܭըʹணख • ϚΠGPT • ݁ՌతʹɺCoreD a t a ॳΊͯ

    ͷঢ়ଶͰ͸ͪΐͬͱඍົͩͬ ͨ • ຒ·͍ͬͯΔ஍ཕΛݟࣄʹશ ෦౿Έൈ͘͜ͱʹͳͬͯͦ͏
  3. xcdatamodelఆٛ classఆٛ΍ؔ਺܈͸ࣗಈੜ੒ͤ͞Δ͜ͱ΋Ͱ͖Δ • <entity n a me="APIC a che" representedCl

    a ssN a me="APIC a che" sync a ble="YES"> • <entity n a me="APIC a che" representedCl a ssN a me="APIC a che" sync a ble="YES" codeGener a tionType="cl a ss"> • <entity n a me="APIC a che" representedCl a ssN a me="APIC a che" sync a ble="YES" codeGener a tionType=“c a tegory”> • 3ͭ໨ͷ༻్͕Θ͔Β͵ • Cle a n͠ͳ͍ͱ൓ө͞Εͳ͍ͳͲɺXcode্Ͱ൓өλΠϛϯά͕҉໧తͰ։ ൃ࣌ʹ৺഑ʹͳΔ
  4. Int͕ͦͷ··࢖͑ͳ͍ • Integer 16, 32, 64 • Decim a l

    • Int(myWord.numQuestion) ͷΑ͏ͳม׵͕ඞཁʹͳΔ