Slide 1

Slide 1 text

iOS Development in LINE Corp. @_ishkawa

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

• iOSΤϯδχΞ4೥໨ • খ͞Ίͷձࣾ → େ͖Ίͷձࣾ

Slide 6

Slide 6 text

• ίϯϙʔωϯτͷ࠶ར༻ • ձࣾͰͷiOSΤϯδχΞͷ໾ׂ ࠓ೔ͷ࿩

Slide 7

Slide 7 text

• ίϯϙʔωϯτͷ࠶ར༻ • ձࣾͰͷiOSΤϯδχΞͷ໾ׂ ࠓ೔ͷ࿩ LINEʹ͸iOSΤϯδχΞ͕ͨ͘͞Μ͍ΔͷͰ

Slide 8

Slide 8 text

• ίϯϙʔωϯτͷ࠶ར༻ • ձࣾͰͷiOSΤϯδχΞͷ໾ׂ ࠓ೔ͷ࿩ LINEʹ͸ඇΤϯδχΞ΋ͨ͘͞Μ͍ΔͷͰ

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

ίϯϙʔωϯτʁ

Slide 11

Slide 11 text

[SVProgressHUD show];

Slide 12

Slide 12 text

• ؆୯ʹ࣮૷Ͱ͖ͦ͏ʹݟ͑Δ • ࡉ෦·ͰϚδϝʹͭ͘Δͷ͸େม • SVProgressHUD͸໿800ߦ

Slide 13

Slide 13 text

֤ʑ͕ಠཱʹಉ͡΋ͷΛ ͭ͘Δͷ͸΋͍ͬͨͳ͍ 1౓ॻ͍ͨΒଞͷਓ΋ ࢖͑ΔΑ͏ʹ͠Α͏ʂ

Slide 14

Slide 14 text

• ։ൃ࣌ؒͷ୹ॖ • ඼࣭ͷ޲্ • ϝϯςφϯείετͷ཈੍ ϝϦοτ

Slide 15

Slide 15 text

͍ͭॻ͍ͯΔͷʁ

Slide 16

Slide 16 text

ΞϓϦݻ༗Ͱ͸ͳ͍ίʔυΛ ॻ͍ͯͨΒͦͷ෦෼Λ੾Γग़͢

Slide 17

Slide 17 text

ྫ: ISCyclicPagesView https://github.com/ishkawa/ISCyclicPagesView

Slide 18

Slide 18 text

• ແݶεΫϩʔϧόφʔ • 22ίϛοτ • ໿200ߦ

Slide 19

Slide 19 text

ΞϓϦͷίʔυͱಉ͡ॻ͖ํʁ

Slide 20

Slide 20 text

ΞϓϦͷίʔυͱಉ͡ॻ͖ํʁ

Slide 21

Slide 21 text

• ඞཁे෼ͳΠϯλʔϑΣʔε • ଞ΁ͷ෭࡞༻Λؚ·ͳ͍ ཁ͢ΔʹߦّΑ͘

Slide 22

Slide 22 text

• ඞཁे෼ͳΠϯλʔϑΣʔε • ଞ΁ͷ෭࡞༻Λؚ·ͳ͍

Slide 23

Slide 23 text

มߋՄೳͳϓϩύςΟΛߜΔ @interface ISCyclicPagesView : UIScrollView ! @property (nonatomic, readonly) NSInteger currentPage; @property (nonatomic, readonly) NSInteger numberOfPages; @property (nonatomic, assign) id dataSource; @property (nonatomic, assign) id delegate; ! - (void)reloadData; - (void)scrollToPage:(NSInteger)page direction:(NSInteger)direction animated:(BOOL)animated; ! - (NSInteger)pageForView:(UIView *)view; - (UIView *)viewForPage:(NSInteger)page; ! @end

Slide 24

Slide 24 text

֎͔Βݺ͹Εͯ΋͍͍ϝιουͷΈΛެ։ @interface ISCyclicPagesView : UIScrollView ! @property (nonatomic, readonly) NSInteger currentPage; @property (nonatomic, readonly) NSInteger numberOfPages; @property (nonatomic, assign) id dataSource; @property (nonatomic, assign) id delegate; ! - (void)reloadData; - (void)scrollToPage:(NSInteger)page direction:(NSInteger)direction animated:(BOOL)animated; ! - (NSInteger)pageForView:(UIView *)view; - (UIView *)viewForPage:(NSInteger)page; ! @end

Slide 25

Slide 25 text

಺෦ॲཧ༻ͷϓϩύςΟ͸ެ։͠ͳ͍ @interface ISCyclicPagesView () ! @property (nonatomic) NSInteger currentPage; @property (nonatomic) NSInteger numberOfPages; @property (nonatomic, strong) NSArray *reusableViews; ! @end

Slide 26

Slide 26 text

಺෦ॲཧ༻ͷఆ਺͸ެ։͠ͳ͍ static NSInteger const ISReusableViewsCount = 3;

Slide 27

Slide 27 text

• ඞཁे෼ͳΠϯλʔϑΣʔε • ଞ΁ͷ෭࡞༻Λؚ·ͳ͍

Slide 28

Slide 28 text

Өڹൣғͷେ͖͍֦ு view.frame = CGRectMake(10.f, view.frame.origin.x, view.frame.size.width, view.frame.size.height); view.x = 10.f;

Slide 29

Slide 29 text

Өڹൣғͷେ͖͍֦ு @implementation UIView (Additions) ! - (CGFloat)x { return self.frame.origin.x; } ! - (void)setX:(CGFloat)x { CGRect frame = self.frame; frame.origin.x = x; self.frame = frame; } ! @end

Slide 30

Slide 30 text

App Library x setX: x setX: ͲͪΒͷx, setX:ͷ࣮૷͕࣮ߦ͞ΕΔͷ͔ෆఆ

Slide 31

Slide 31 text

Өڹൣғͷେ͖͍֦ு @implementation UIView (Additions) ! - (CGFloat)x { return self.frame.origin.x; } ! - (void)setX:(CGFloat)x { CGRect frame = self.frame; frame.origin.x = x; self.frame = frame; } ! @end

Slide 32

Slide 32 text

ϥΠϒϥϦ֎ͷมߋΛͳΔ΂͘ආ͚Δ [UIView appearance].backgroundColor = [UIColor blueColor]; ! [UIApplication sharedApplication].statusBarHidden = YES;

Slide 33

Slide 33 text

Ͳ͜ͰίʔυΛެ։͢Δ͔ʁ

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

ձࣾݻ༗ͷίʔυ৔߹

Slide 36

Slide 36 text

Πϯετʔϧ΍ߋ৽Λ ؆୯ʹ͢Δʹ͸ʁ

Slide 37

Slide 37 text

http://cocoapods.org

Slide 38

Slide 38 text

Demo

Slide 39

Slide 39 text

ϥΠϒϥϦΛॻ͍ͨΒ CocoaPodsʹରԠͤ͞Α͏

Slide 40

Slide 40 text

ϥΠϒϥϦΛॻ͍ͨΒ podspecΛॻ͜͏

Slide 41

Slide 41 text

Pod::Spec.new do |s| s.name = "ISDiskCache" s.version = "0.1.1" s.platform = :ios, "4.3" s.summary = "LRU disk cache for iOS." s.homepage = "https://github.com/ishkawa/ISDiskCache" s.source_files = "ISDiskCache/**/*.{h,m}" s.requires_arc = true s.author = { "Yosuke Ishikawa" => "y@ishkawa.org" } s.source = { :git => "https://github.com/ishkawa/ISDiskCache.git", :tag => "0.1.1" } s.license = { :type => "MIT", :text => <<-LICENSE ... LICENSE } end podspec

Slide 42

Slide 42 text

podspecͷஔ͖৔͸ʁ

Slide 43

Slide 43 text

• ϥΠϒϥϦͷϦϙδτϦ • CocoaPodsͷϦϙδτϦ • In HouseͷϦϙδτϦ

Slide 44

Slide 44 text

• ϥΠϒϥϦͷϦϙδτϦ • CocoaPodsͷϦϙδτϦ • In HouseͷϦϙδτϦ

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

pod 'ISDiskCache', :git => ‘https://github.com/ishkawa/ISDiskCache.git', :tag => '0.1.1' Podfile

Slide 48

Slide 48 text

• ϥΠϒϥϦͷϦϙδτϦ • CocoaPodsͷϦϙδτϦ • In HouseͷϦϙδτϦ

Slide 49

Slide 49 text

CocoaPods/Specs ͜͜ʹొ࿥͞Ε͍ͯΕ͹ ࣗಈతʹօͷखݩʹೖΔ podspec Pull Request https://github.com/CocoaPods/Specs

Slide 50

Slide 50 text

https://github.com/CocoaPods/Specs/pull/2780

Slide 51

Slide 51 text

pod 'ISDiskCache', '~> 0.1.1' Podfile

Slide 52

Slide 52 text

• ϥΠϒϥϦͷϦϙδτϦ • CocoaPodsͷϦϙδτϦ • In HouseͷϦϙδτϦ

Slide 53

Slide 53 text

CocoaPods/Specs ಠࣗͷpodspecஔ͖৔Λ௥ՃͰ͖Δ LINE-Corp/Specs

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

pod repo add in-house https://github.com/ishkawa/CocoaPodsSpecs.git Command

Slide 56

Slide 56 text

pod 'ISDiskCache', '~> 0.1.1' Podfile

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

LINEͰͷίʔυͷ࠶ར༻ͷ·ͱΊ

Slide 59

Slide 59 text

• ͔ͤͬ͘ॻ͍ͨίϯϙʔωϯτ͸ෳ਺νʔϜͰ࠶ར༻ • ΞϓϦݻ༗Ͱͳ͚Ε͹ϥΠϒϥϦͱͯ͠੾Γग़ͯ͠ެ։ • ϥΠϒϥϦͷίʔυ͸ߦّྑ͘ॻ͘ • CocoaPodsʹରԠͤͯ͞ར༻͠΍͘͢͢Δ

Slide 60

Slide 60 text

LINEͰ͸GitHub Enterpriseͱ CocoaPodsΛར༻ͯ͠ ίʔυͷ࠶ར༻ΛਐΊ͍ͯ·͢

Slide 61

Slide 61 text

• Pull RequestͰίʔυϨϏϡʔ • Ϣχοτςετͷಋೖ ࠷ۙ͸ࣾ಺ʹ͜ΜͳྲྀΕ΋͋Γ·͢

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

iOSΤϯδχΞͷ໾ׂ = iOSΞϓϦͷ։ൃ

Slide 64

Slide 64 text

ϓϩάϥϜΛॻ͘ + ͦͷଞଟ਺

Slide 65

Slide 65 text

αʔϏεઃܭ UIઃܭ UIϓϩτλΠϐϯά ςετέʔεͷ࡞੒ શόʔδϣϯͰಈ࡞֬ೝ ϞϯΩʔςετ ར༻౷ܭͷઃܭ Dev Centerͷ࡞ۀ iTunes Connectͷ࡞ۀ

Slide 66

Slide 66 text

ϓϩάϥϜΛॻ͘ + ͦͷଞଟ਺ ͬͪ͜ʹूத͍ͨ͠

Slide 67

Slide 67 text

• اը/σβΠϯઌߦͷϑϩʔ • खް͍QA LINEͷಛ௃

Slide 68

Slide 68 text

• اը/σβΠϯઌߦͷϑϩʔ • खް͍QA LINEͷಛ௃

Slide 69

Slide 69 text

αʔϏεઃܭ UIσβΠϯ ࣮૷ QA ͜͜ͰࢀՃ͢Δ

Slide 70

Slide 70 text

• اը/σβΠϯઌߦͷϑϩʔ • खް͍QA LINEͷಛ௃

Slide 71

Slide 71 text

• QAઐ໳෦໳͕୲౰ • ෳ਺ਓ͕શόʔδϣϯͷOSͰςετ • ࠶ݱঢ়گΛৄࡉʹใࠂͯ͠΋Β͑Δ • ༧૝ͷ3ഒͷෆ۩߹Λൃݟͯ͠΋Β͑Δ
 ※ ݸਓͷײ૝Ͱ͢ ϦϦʔεલޙͷετϨε͕͔ͳΓܰݮ͞ΕΔ

Slide 72

Slide 72 text

LINEʹ͸iOSΤϯδχΞ͕ ։ൃʹूதͰ͖Δ؀ڥ͕੔͍ͬͯ·͢

Slide 73

Slide 73 text

LINEͰ͸iOSΤϯδχΞΛืू͍ͯ͠·͢