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

iOS12のスクリーンタイムと仲良くなる

Nobuyuki Nishiyama
January 28, 2019
1k

 iOS12のスクリーンタイムと仲良くなる

QRコードとiOS12の新機能「スクリーンタイム」と仲良くなる方法についてまとめました!

アプリ「パズル&モナーク」
https://apple.co/2SkC2Pc
ソースコード
https://github.com/tek-nishi/PuzzleAndMonarch

Nobuyuki Nishiyama

January 28, 2019
Tweet

Transcript

  1. εΫϦʔϯλΠϜͱ஥ྑ͘ͳΔ
    ΅ͬͪήʔϜσϕϩού
    ੢ࢁ৴ߦ
    @5mingame2

    View full-size slide

  2. wࡢ೥຤ʹϦϦʔεͨ͠J04ΞϓϦύζϧˍϞ
    φʔΫʹ·ͭΘΔ࿩Λڞ༗͠·͢
    w$JOEFSͱ$Ͱ։ൃ͍ͯ͠Δ͕ނͷۤ࿑࿩Ͱ͢
    ΅ͬͪήʔϜσϕϩούͷ੢ࢁͰ͢

    View full-size slide

  3. w23ίʔυʹ·ͭΘΔωλ
    wεΫϦʔϯλΠϜʹ·ͭΘΔωλ
    ࠓ೔͸̎఺

    View full-size slide

  4. wJ04७ਖ਼ͷΧϝϥΞϓϦͰࣸͦ͏ͱ͢Δͱʜʁ
    23ίʔυʹ·ͭΘΔωλ

    View full-size slide

  5. wJ04७ਖ਼ΧϝϥΞϓϦ͸23ίʔυରԠͳͷ͕ҙ֎ͱ஌
    ΒΕ͍ͯͳ͍
    wJ04͔Βͷ৽ػೳ
    w໊ࢗʹΞϓϦͷ23ίʔυΛೖΕͯ΋23ίʔυೝࣝͰ
    ͖ͳ͍͠ͱࢥΘΕΔ
    ͓Θ͔Γ͍͚ͨͩͨͩΖ͏͔ʜ

    View full-size slide

  6. wJ04ͷΧϝϥ͸23ίʔυରԠͯ͠ΔͱɺͲΜͲ
    Μਧௌ͍͖ͯ͠·͠ΐ͏ʂʂʂʂʂʂ
    23ίʔυ·ͱΊ

    View full-size slide

  7. εΫϦʔϯλΠϜʹ·ͭΘΔωλ

    View full-size slide

  8. wΞϓϦͷ࢖༻ঢ়گΛूܭͨ͠Γɺ੍࣌ؒݶΛֻ
    ͚Δػೳ
    wJ04ͷ৽ػೳ
    εΫϦʔϯλΠϜͱ͸

    View full-size slide

  9. w͜ΕʹҾֻ͔ͬͬͨ
    ࠓճ໰୊ʹͳͬͨػೳ

    View full-size slide

  10. w੍࣌ؒݶֻ͕͔͍ͬͯΔͱΞϓϦىಈ௚ޙʹམ
    ͪΔ
    Կ͕໰୊ʹͳ͔ͬͨ

    View full-size slide

  11. w࢖༻੍ݶֻ͕͔͍ͬͯΔͱɺىಈ࣌ͷॳظԽͰ
    AudioSessionͷίϯςΩετ͕औಘͰ͖ͳ͍
    Կ͕ݪҼ͔ʁ

    View full-size slide

  12. wΞϓϦͷॳظԽΛUIApplicationDelegate ͷ

    - application: didFinishLaunchingWithOptions:


    ʹͯҰׅॲཧ
    •੍࣌ؒݶֻ͕͔͍ͬͯͯ΋͜ͷϝιου͸ݺ͹
    Ε… AudioSessionͷίϯςΩετ͕औಘͰ͖ͣ
    ಺෦ΤϥʔͰམͪΔ
    ΋ͬͱৄ͘͠

    View full-size slide

  13. w Ͳ͏ରԠ͢Ε͹Α͍΋ͷ͔ʜ
    ࠔͬͨ

    View full-size slide

  14. wࠔͬͨ࣌ͷ6OJUZཔΈ
    w6OJUZͰJ04ΞϓϦΛϏϧυ͢Δͱ9DPEFͷϓϩ
    δΣΫτˍιʔείʔυ͕ग़ྗ͞ΕΔ
    wΞϓϦ࣮૷ͷࢀߟʹͯ͠ΈΑ͏ʂ
    ͦΜͳ࣌͸ʂ

    View full-size slide

  15. w ղܾʂ
    6OJUZͰͷ࣮૷Λௐ΂ͨ݁Ռ

    View full-size slide

  16. wϥΠϒϥϦͷίʔυʹखΛೖΕɺΞϓϦͷॳظ
    ԽॲཧΛ- applicationDidBecomeActive: ΁
    Ҡಈͨ͠
    ͜͏΍ͬͯղܾ

    View full-size slide

  17. wࠔͬͨ࣌͸ઌਓͷίʔυʹֶ΅͏ʂ
    εΫϦʔϯλΠϜ·ͱΊ

    View full-size slide

  18. w७ਖ਼ΧϝϥΞϓϦͰ23ίʔυ͸ಡΊΔʂ
    wෆ۩߹ʹૺ۰ͨ͠ΒઌਓͷίʔυΛಡ΋͏ʂ
    ·ͱΊ

    View full-size slide