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

全力疾走中でも使えるストップウォッチアプリを作る

Ogijun
September 12, 2022
3.6k

 全力疾走中でも使えるストップウォッチアプリを作る

Ogijun

September 12, 2022
Tweet

Transcript

  1. © ZOZO, Inc. גࣜձࣾZOZO ZOZOTOWNΞϓϦ෦
 iOSϒϩοΫ Ԯ໺ ൏ 2022.04 ZOZO৽ଔೖࣾ


    ཮্ڝٕྺ 15೥ʢ2008~2022ʣ
 ࣾձਓͰ΋ଓ͚ͯ·͢ 2 Ogijun / @juginon
  2. © ZOZO, Inc. 5 ̋ × ̋ ̋ × ̋

    ̋ ˚ ̋ ଱ٱੑ ϝϞϦʔػೳ ϥοϓػೳ Ձ֨ ߴڃͳ ετοϓ΢Υον Ϧʔζφϒϧͳ ετοϓ΢Υον ʁ ετοϓ΢Υονൺֱ ˇ
  3. © ZOZO, Inc. ̋ × ̋ ̋ × ̋ ̋

    ˚ ̋ 6 ଱ٱੑ ϝϞϦʔػೳ ϥοϓػೳ Ձ֨ ߴڃͳ ετοϓ΢Υον Ϧʔζφϒϧͳ ετοϓ΢Υον J1IPOF📱 ˇ ετοϓ΢Υονൺֱ
  4. © ZOZO, Inc. 14 બख Ϛωʔδϟʔ ૸Γͳ͕ΒετοϓϘλϯ ͕ԡͤͳ͍ બखΛݟͳ͕Β ελʔτετοϓ͕೉͍͠

    ͳͥԻྔϘλϯ͕ඞཁͳͷ͔ʁ ͳͥ΍Γʹ͍͘ͷ͔ʁ ը໘Λݟ͍ͯͳ͍ঢ়ଶͰૢ࡞͕΍ΓͮΒ͍ʂ
  5. © ZOZO, Inc. 15 ඞਢ߲໨ ɾը໘Λݟͳͯ͘΋ૢ࡞͕Ͱ͖Δ ɾ࣮֬ʹૢ࡞Λߦͬͨͱ͍͏ϑΟʔυόοΫ͕ಘΒΕΔ ͋Δͱخ͍͠ ɾεϚʔτϑΥϯͭͰ׬݁͢Δ 


    ˠ४උ͢Δͷʹ͓ۚͱख͕ؒඞཁͩͱຊ຤స౗ʢετοϓ΢ΥονΛങ͓͏ʂʣ ͳͥԻྔϘλϯ͕ඞཁͳͷ͔ʁ Ͳ͏͢Ε͹ղܾͰ͖Δʁ ɾͲͷ୺຤Ͱ΋ૢ࡞Մೳ ˠ-J%"3΍ਂ౓ΧϝϥͳͲɺಛఆͷ୺຤ʹ͔͠ͳ͍ػೳ͸࢖Θͳ͍
  6. © ZOZO, Inc. 25 ඞਢ߲໨ ɾը໘Λݟͳͯ͘΋ૢ࡞͕Ͱ͖Δ ɾ࣮֬ʹૢ࡞Λߦͬͨͱ͍͏ϑΟʔυόοΫ͕ಘΒΕΔ ͋Δͱخ͍͠ ɾεϚʔτϑΥϯͭͰ׬݁͢Δ 


    ˠ४උ͢Δͷʹ͓ۚͱख͕ؒඞཁͩͱຊ຤స౗ʢετοϓ΢ΥονΛങ͓͏ʂʣ ɾͲͷ୺຤Ͱ΋ૢ࡞Մೳ ˠ-J%"3΍ਂ౓ΧϝϥͳͲɺಛఆͷ୺຤ʹ͔͠ͳ͍ػೳ͸࢖Θͳ͍ Ͳ͏͢Ε͹ղܾͰ͖Δʁ
  7. © ZOZO, Inc. 27 ը໘ εϫΠϓ छྨͷΠϯλϥΫγϣϯΛ࣮૷ ɾը໘Λݟͳͯ͘΋ૢ࡞͕Ͱ͖Δ ຊࢦ λοϓ

    γΣΠΫ എ໘ λοϓ ۙ઀ ηϯαʔ ԻྔϘλϯΛ࢖Θͳ͍Ͱ࣮૷͢Δ ɾ࣮֬ʹૢ࡞Λߦͬͨͱ͍͏ϑΟʔυόοΫ͕ಘΒΕΔ
  8. © ZOZO, Inc. εϫΠϓ ຊࢦ λοϓ γΣΠΫ എ໘ λοϓ ۙ઀

    ηϯαʔ ը໘શମΛεϫΠϓՄೳʹ ্ํ޲ͷεϫΠϓ࣌ʹελʔτɾετοϓ͢ΔΑ͏ʹઃఆ .directionͰεϫΠϓํ޲Λ4ํ޲ࢦఆՄೳ ը໘εϫΠϓͷ੍ޚ࣮૷ʢྫʣ
  9. © ZOZO, Inc. εϫΠϓ ຊࢦ λοϓ γΣΠΫ എ໘ λοϓ ۙ઀

    ηϯαʔ ը໘Λ2ຊࢦͰλοϓ͢Δͱελʔτɾετοϓ .numberOfTouchedRequiredͰ൓Ԡ͢Δࢦͷຊ਺Λઃఆ iOSͩͱ3ຊࢦɺiPadOSͩͱ4ຊࢦ·ͰઃఆՄೳ 2ຊࢦλοϓͷ੍ޚ࣮૷ʢྫʣ
  10. © ZOZO, Inc. εϫΠϓ ຊࢦ λοϓ γΣΠΫ എ໘ λοϓ ۙ઀

    ηϯαʔ γΣΠΫ͞ΕͨΒελʔτɾετοϓ CoreMotionͰՃ଎౓ͷੜσʔλΛऔಘ͢Δ͜ͱ΋Մೳ ࠓճ͸UIKitͷmotionEnded()Λ࢖༻ γΣΠΫδΣενϟʔͷ੍ޚ࣮૷ʢྫʣ
  11. © ZOZO, Inc. εϫΠϓ ຊࢦ λοϓ γΣΠΫ എ໘ λοϓ ۙ઀

    ηϯαʔ എ໘λοϓ࣌ʹγϣʔτΧοτΛొ࿥ ొ࿥͞ΕͨSiri shortcut͕ىಈ ετοϓ΢ΥονΛελʔτ/ετοϓ Siri shortcutΛ࣮૷ ελʔτ/ετοϓΛγϣʔτΧοτʹ
  12. © ZOZO, Inc. ۙ઀ηϯαʔͱ͸… ௨࿩࣌ʹࣖΛεϐʔΧʔʹ͚ͭͨͱ͖ɺޡಈ࡞Λ๷͙ͨΊʹ λονύωϧΛແޮԽ͢ΔͨΊͷηϯαʔ εϫΠϓ ຊࢦ λοϓ γΣΠΫ

    എ໘ λοϓ ۙ઀ ηϯαʔ → iPhoneͷ্෦ΛखͰୟ͚͹ɺ؆୯ʹετοϓ΢ΥονΛ ੍ޚͰ͖ΔͷͰ͸ʁ ۙ઀ηϯαʔͷ੍ޚ࣮૷ʢྫʣ
  13. © ZOZO, Inc. 33 N ճ छྨ ճ εϫΠϓ ຊࢦ

    λοϓ γΣΠΫ എ໘ λοϓ ۙ઀ ηϯαʔ Ϙλϯ º º N 4UPQ d ࣮ࡍʹ࢖ͬͯΈͨ
  14. © ZOZO, Inc. 45 1ճ໨ 2ճ໨ 3ճ໨ 4ճ໨ 5ճ໨ Ϙλϯλοϓ

    ✖ ⭕ ⭕ ⭕ ✖ 2ຊࢦλοϓ ✖ ✖ ✖ ✖ ✖ ্ํ޲εϫΠϓ ⭕ ✖ ⭕ ✖ ⭕ γΣΠΫ ✖ ✖ ✖ ✖ ✖ എ໘λοϓ ✖ ✖ ✖ ✖ ✖ ۙ઀ηϯαʔ ⭕ ⭕ ⭕ ⭕ ⭕ λΠϜ͕໰୊ͳ͘औΕΔ࣮૷͸ʁ ࣮ࡍʹ࢖ͬͯΈͨ