Slide 1

Slide 1 text

΍͸Γ͓લΒͷ J04ΞϓϦ։ൃ͸ؒҧ͍ͬͯΔ !ZJNBKP JPTED

Slide 2

Slide 2 text

ࠓճ͸ ΈΜͳେ޷͖Ͱ͍ͭ࡞ͬͯ͠·͏ BaseViewControllerʹ͍ͭͯ ࿩Λ͠·͢

Slide 3

Slide 3 text

ΦϨࢲ͸BaseViewController Λ ࡞Γͨ͘ͳ͍Αͬͯํ͸ ͦͷҙࢥද໌Λ͢Δͷʹ͸ ͜ͷ-5ʹ౤ථ͓ͯ͘͠ͱϕετ

Slide 4

Slide 4 text

࿩ͷલఏΛ֬ೝ͢ΔΑ

Slide 5

Slide 5 text

J04ΞϓϦ։ൃ ͱ͍ͬͯ΋

Slide 6

Slide 6 text

࡞ͬͯऴΘΓ

Slide 7

Slide 7 text

ʜͷ࿩ɺ Ͱ͸ͳ͍

Slide 8

Slide 8 text

࡞ͬͯϦϦʔεͯ͠ ෆ۩߹Λमਖ਼͠

Slide 9

Slide 9 text

νʔϜͷϝϯόʔ͕ ૿͑ͨΓݮͬͨΓ

Slide 10

Slide 10 text

৽͍͠ػೳΛ௥Ճͨ͠ΓΛ ೔ʑ܁Γฦ͍ͯ͘͠࿩

Slide 11

Slide 11 text

ͦ͏͍͏࣌ʹɺ

Slide 12

Slide 12 text

BaseViewControllerΛ࡞Δͷ ͸ ؒҧ͍ͬͯΔ݅

Slide 13

Slide 13 text

BaseViewController ͱ͸

Slide 14

Slide 14 text

֤ը໘༻ͷ 7JFX$POUSPMMFS͕ ܧঝͯ͠࢖͏ UIViewController BaseViewController ViewController ViewController

Slide 15

Slide 15 text

• ϥΠϑαΠΫϧʹԠͯ͡ ΞφϦςΟΫεܥͷϝιο υΛݺͼग़ͨ͠Γ • Կ͔͠ΒͷϥΠϒϥϦͷ ݺͼग़͠ΛϝιουͰӅ ṭ͠Α͏ͱͨ͠Γ UIViewController BaseViewController ViewController ViewController

Slide 16

Slide 16 text

Կ͕ؒҧ͍ͬͯΔ͔

Slide 17

Slide 17 text

࣭໰ͱճ౴ܗࣜͰ ߟ͍͑ͯ͘

Slide 18

Slide 18 text

ʮ6*5BCMF7JFX$POUSPMMFSͱ 6*$PMMFDUJPO7JFX$POUSPMMFSΛ࢖͍͍ͨ ৔߹͸Ͳ͏΍ͬͯͦͷ #BTF7JFX$POUSPMMFS࢖͏ΜͰ͔͢ʁʯ ࣭໰

Slide 19

Slide 19 text

ͦͷࡍɺΞϓϦಠࣗͷॲཧΛ࣮૷͢ΔͨΊʹ UIViewControllerΛܧঝͨ͠ BaseViewControllerΛͭ͘ΓͦΕΛ֤ը໘༻ ͷViewController͕ܧঝͯ͠࢖͏͜ͱ͕͋Δ UITableView Controller TVC BaseView Controller UIViewController UICollectionView Controller BaseTableView Controller BaseCollectionView Controller ͡Ό͋͜͏͠Α͏ TVC VC VC CVC CVC

Slide 20

Slide 20 text

ʮͦΕͧΕڞ௨͢Δ࣮૷Λ Օॴʹίϐϖ͢ΔΘ͚ ͡Όͳ͍Ͱ͢ΑͶʁʯ ࣭໰

Slide 21

Slide 21 text

ͦͷࡍɺΞϓϦಠࣗͷॲཧΛ࣮૷͢ΔͨΊʹ UIViewControllerΛܧঝͨ͠ BaseViewControllerΛͭ͘ΓͦΕΛ֤ը໘༻ ͷViewController͕ܧঝͯ͠࢖͏͜ͱ͕͋Δ ʰ6UJMJUZΛ࡞ͬͯͦ͜ʹ࣮૷͸͢ΔΑʂʱ UITableView Controller TVC UIViewController UICollectionView Controller TVC VC VC CVC CVC BaseView Controller BaseTableView Controller BaseCollectionView Controller Utility

Slide 22

Slide 22 text

ʮ#BTF7JFX$POUSPMMFSΛ ܧঝͨ͘͠ͳ͍7JFX$POUSPMMFSͬ ͯग़͖ͯ·͢ΑͶʁʯ ࣭໰

Slide 23

Slide 23 text

ͦͷࡍɺΞϓϦಠࣗͷॲཧΛ࣮૷͢ΔͨΊʹ UIViewControllerΛܧঝͨ͠ BaseViewControllerΛͭ͘ΓͦΕΛ֤ը໘༻ ͷViewController͕ܧঝͯ͠࢖͏͜ͱ͕͋Δ BaseView Controller BaseTableView Controller BaseCollectionView Controller ʰͦ͏ͳͬͨΒܧঝ͠ͳ͍ʱ UITableView Controller TVC UIViewController UICollectionView Controller TVC VC VC CVC CVC Utility ViewController ϥΠϒϥϦͷVC Կ͔͠Βͷ ϥΠϒϥϦ͕ఏڙ͢Δ

Slide 24

Slide 24 text

ʮίʔυϨϏϡʔΛ͢Δࡍɺ ܧঝ͢΂͖7JFX$POUSPMMFSͱ ͦͷܧঝ͠ͳ͍7JFX$POUSPMMFSͷҧ͍͸ Ͳ͜ΛݟΕ͹൑ผͰ͖ΔΜͰ͔͢ʁʯ ࣭໰

Slide 25

Slide 25 text

ʮ#BTF7JFX$POUSPMMFSͷ࣮૷ Λϝϯόʔશһ͕೺Ѳͯ͠ͳ͍ ͱා͘ͳ͍Ͱ͔͢ʁʯ ࣭໰

Slide 26

Slide 26 text

ʮυΩϡϝϯτ͸ͳ͍Θ͚Ͱ͢Α Ͷʁʯ ࣭໰

Slide 27

Slide 27 text

ʮͭ·Γʜɺ #BTF7JFX$POUSPMMFSͬͯͦΕ ΦϨΦϨϑϨʔϜϫʔΫͰ͢ΑͶʁʯ

Slide 28

Slide 28 text

ʰ͓ɺ͓͏ʜʱ

Slide 29

Slide 29 text

Ҏ্͕ ໝ૝ʹΑΔ࣭໰ͱճ౴ྫͰ͢

Slide 30

Slide 30 text

#BTF7JFX$POUSPMMFS ΦϨΦϨϑϨʔϜϫʔΫ

Slide 31

Slide 31 text

ͳͥਓ͸J04Ͱ΋ ΦϨΦϨϑϨʔϜϫʔΫΛ ࡞Γ͕ͨΔ͔

Slide 32

Slide 32 text

w ʮ͕͜͜͜͏ͳͬͯ͜͏ͳͬͯ͜͏ʜ͜ͷॲཧڞ ௨ԽͰ͖Δʂʯ w ʮܧঝͯ͠࢖͑ΔΑ͏ʹ͓͚ͯ͠͹ޙͰͳʹ͔ͷ ໾ʹཱͭʂʯ w ʮʢྗ͕ʜཉ͍͔͠ʣʯͱ͍͏੠͕ݾͷத͔Β ௌ͑͜Δʂ

Slide 33

Slide 33 text

͓ͦΒ͘ਓ͸෺ࣄΛ ͏·͘΍Ζ͏ͱ͍͏Ҿྗ ʹऒ͔ΕΔ

Slide 34

Slide 34 text

ඞཁ͕ͳ͍͔΋͠Εͳ ͍ந৅ԽΛ͢Δ

Slide 35

Slide 35 text

΋͘͠͸ ܦݧ͔ΒϘτϜΞοϓͳઃܭΛߦͳ͍ɺ ͦΕΛࣗ෼ͷ޲্ͩͱצҧ͍͢Δ Μ͡Όͳ͍͔ͳ͋

Slide 36

Slide 36 text

ͦ͏͍͏ͱ͖ʹ ࢥ͍ग़ͯ͠ཉ͍͠ :"(/*ݪଇ

Slide 37

Slide 37 text

:"(/*ݪଇ w ޙͰ࢖͏ͩΖ͏ͱ͍͏༧ଌͰ࡞ͬͯ΋ߴ͍֬཰ Ͱ࢖ΘΕͳ͍ͷʹଞͷϝϯόʔ΋ཧղ͢Δඞཁ ͕ग़ͯ͘Δ͚ͲແବʹͳΔ w ༧ظ͠ͳ͍มߋʹରͯ͠͸ઃܭͷ୯७໋͕͞ ͡ΌΜ IUUQTKBXJLJQFEJBPSHXJLJ:"(/* ඞཁʹͳͬͨͱ͖ඞཁͳࣄΛ͢Ε͹͍͍Α

Slide 38

Slide 38 text

ʒͷΤϞ͍࿩

Slide 39

Slide 39 text

ࢲ͸ɺ͜͜ʹ͍Δօ͞Μͱಉ͡Ͱɺ ػೳ௥Ճ΍ෆ۩߹मਖ਼Λਝ଎ʹߦ͏ͨΊ ෳࡶͳΞϓϦέʔγϣϯ΋ ϝϯςφϒϧʹॻ͖͍ͨ ͱࢥ͍ͬͯ·͢ɻ

Slide 40

Slide 40 text

ٳ೔ʹ͓ۚ෷ͬͯ࿅അ·Ͱ དྷΔͬͯ૬౰Ͱ͢ΑͶ

Slide 41

Slide 41 text

ڪΒ͘օ͞Μ͸ ։ൃʹؔ͢Δ஌ݟΛಘΔ͜ͱͰ ΑΓྑ͘೔ʑͷ։ൃΛ͍͖͍ͯͨ͠ͱ ײ͔ͨ͡Βདྷͨ͸ͣͰ͢

Slide 42

Slide 42 text

ྫ͑͹ ʮϢʔβͷͨΊʹػೳΛ͜͏ͯ͠ཉ͍͠ʯ ͬͯཔ·Εͨ࣌ʹ ʮԞਂ͘ͷઃܭ͕ೖΓ૊ΜͰͯແཧʜʯ ͬͯݴ͍ͨ͘ͳ͍͡Όͳ͍Ͱ͔͢

Slide 43

Slide 43 text

BaseViewControllerͬͯඞਢ ͡Όͳ͍͠ޙ͔ΒࢀՃ͢Δϝϯόʔ ͔Βͨ͠ΒअຐʹͳΓͦ͏Ͱ͢

Slide 44

Slide 44 text

ຊ౰͸ ։ൃʹؒҧ͍ͳΜͯ ͳ͍

Slide 45

Slide 45 text

Ͱ΋ ೔ʑͷӡ༻Λߟ͑ΔͳΒ ΦϨΦϨϑϨʔϜϫʔΫΛ࢖Θͳ͍ ΋ͬͱྑ͍΍ΓํΛ ୳͠·͠ΐ͏Α

Slide 46

Slide 46 text

͡Ό͋ BaseViewController Λ࡞Βͳ͚Ε ͹ΦϨͨͪΌͲ͏͢Ε͹͍͍ΜͩΑʁ

Slide 47

Slide 47 text

BaseViewController Λ࡞Βͣʹ ۩ମతʹͲ͏͢Μͷͬͯํ͸ ͦͷҙࢥද໌Λ͢Δͷʹ͸ ͜ͷ-5ʹ౤ථ͢Δͷ͕Ұ൪ྑ͍Ͱ͢ Ҏ্Ͱ͢ ͋Γ͕ͱ͏͍͟͝·ͨ͠

Slide 48

Slide 48 text

w ΍͸Γ͓લΒͷJ04ରԠ͸ؒҧ͍ͬͯΔ w IUUQXXXTMJEFTIBSFOFU:PTIJOPSJ*NBKPJPT w ΍͸Γ͓લΒͷ$PSF%BUBͷ࢖͍ํ΋ؒҧ͍ͬͯΔ w IUUQXXXTMJEFTIBSFOFU:PTIJOPSJ*NBKPDPSFEBUB w J04ΞϓϦͷઃܭͰ#BTF7JFX$POUSPMMFSͷΑ͏ͳͷ͸࡞Γͨ͘ͳ͍ w IUUQRJJUBDPNZJNBKPJUFNTFGFCECGE ࢀߟ

Slide 49

Slide 49 text

ࣗݾ঺հ • ࠓ৓ ળۣ(@yimajo) • iOSΞϓϦ։ൃΛ࢓ࣄʹ͍ͯ͠·͢ • ΤϯδχΞͷΞ΢τϓοτϥϯΩϯ άαʔϏε https://stargzr.net Λ࡞ͬ ͨΓ΋͍ͯ͠·͢