Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
LINE Developer Meet Up #2
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Yosuke Ishikawa
March 26, 2014
Technology
710
7
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
LINE Developer Meet Up #2
Yosuke Ishikawa
March 26, 2014
More Decks by Yosuke Ishikawa
See All by Yosuke Ishikawa
効率的な開発手段として VRTを活用する
ishkawa
1
250
アプリを起動せずにアプリを開発して品質と生産性を上げる
ishkawa
0
4.6k
Achieving Testability in Presentation Layer
ishkawa
4
3.9k
Introducing Wire: Dependency Injection by Code Generator
ishkawa
12
1.4k
Declarative UICollectionView
ishkawa
28
8.5k
Nuxt.jsが掲げる"Universal Vue.js Applications"とは何者か
ishkawa
10
2.8k
Static Dependency Injection by Code Generation
ishkawa
15
6.8k
実践クライアントサイドSwift
ishkawa
23
4.4k
JSON-RPC on APIKit
ishkawa
5
68k
Other Decks in Technology
See All in Technology
攻撃者視点で考えるDetection Engineering
cryptopeg
3
2k
LayerX コーポレートエンジニアリング室におけるサプライチェーンセキュリティへの取り組み / Supply Chain Security at LayerX Corporate Engineering
yuyatakeyama
2
680
気軽に使える"情報のハブ"としてのNotion活用 〜フロー情報の集積点 と、 Claude Code × Notion AI〜
syucream
1
150
AIはどのように 組織のアジリティを変えるのか?
junki
4
1k
徹底討論!ECS vs EKS!
daitak
0
180
現地で盛り上がった WWDC26 Keynote
zozotech
PRO
1
270
Kiro Ambassador を目指す話
k_adachi_01
0
110
日本 Fintech 未来予測レポート 2027〜2028年(オリジナル版)
8maki
0
2.3k
2026TECHFRESH畢業分享會 - 葬送的通靈師:化系統與用戶雜訊成行動訊號
line_developers_tw
PRO
0
1.3k
2026TECHFRESH畢業分享會 - 原生還是跨平台? App 開發踩坑實錄
line_developers_tw
PRO
0
1.3k
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
6
2k
Chainlitで作るお手軽チャットUI
ynt0485
0
280
Featured
See All Featured
The Cult of Friendly URLs
andyhume
79
6.9k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
340
Making the Leap to Tech Lead
cromwellryan
135
9.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Between Models and Reality
mayunak
4
340
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
160
The Spectacular Lies of Maps
axbom
PRO
1
820
Believing is Seeing
oripsolob
1
150
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Exploring anti-patterns in Rails
aemeredith
3
410
Amusing Abliteration
ianozsvald
1
210
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
Transcript
iOS Development in LINE Corp. @_ishkawa
None
None
None
• iOSΤϯδχΞ4 • খ͞Ίͷձࣾ → େ͖Ίͷձࣾ
• ίϯϙʔωϯτͷ࠶ར༻ • ձࣾͰͷiOSΤϯδχΞͷׂ ࠓͷ
• ίϯϙʔωϯτͷ࠶ར༻ • ձࣾͰͷiOSΤϯδχΞͷׂ ࠓͷ LINEʹiOSΤϯδχΞ͕ͨ͘͞Μ͍ΔͷͰ
• ίϯϙʔωϯτͷ࠶ར༻ • ձࣾͰͷiOSΤϯδχΞͷׂ ࠓͷ LINEʹඇΤϯδχΞͨ͘͞Μ͍ΔͷͰ
None
ίϯϙʔωϯτʁ
[SVProgressHUD show];
• ؆୯ʹ࣮Ͱ͖ͦ͏ʹݟ͑Δ • ࡉ෦·ͰϚδϝʹͭ͘Δͷେม • SVProgressHUD800ߦ
֤ʑ͕ಠཱʹಉ͡ͷΛ ͭ͘Δͷ͍ͬͨͳ͍ 1ॻ͍ͨΒଞͷਓ ͑ΔΑ͏ʹ͠Α͏ʂ
• ։ൃ࣌ؒͷॖ • ࣭ͷ্ • ϝϯςφϯείετͷ੍ ϝϦοτ
͍ͭॻ͍ͯΔͷʁ
ΞϓϦݻ༗Ͱͳ͍ίʔυΛ ॻ͍ͯͨΒͦͷ෦ΛΓग़͢
ྫ: ISCyclicPagesView https://github.com/ishkawa/ISCyclicPagesView
• ແݶεΫϩʔϧόφʔ • 22ίϛοτ • 200ߦ
ΞϓϦͷίʔυͱಉ͡ॻ͖ํʁ
ΞϓϦͷίʔυͱಉ͡ॻ͖ํʁ
• ඞཁेͳΠϯλʔϑΣʔε • ଞͷ෭࡞༻Λؚ·ͳ͍ ཁ͢ΔʹߦّΑ͘
• ඞཁेͳΠϯλʔϑΣʔε • ଞͷ෭࡞༻Λؚ·ͳ͍
มߋՄೳͳϓϩύςΟΛߜΔ @interface ISCyclicPagesView : UIScrollView ! @property (nonatomic, readonly) NSInteger
currentPage; @property (nonatomic, readonly) NSInteger numberOfPages; @property (nonatomic, assign) id <ISCyclicPagesViewDataSource> dataSource; @property (nonatomic, assign) id <ISCyclicPagesViewDelegate> delegate; ! - (void)reloadData; - (void)scrollToPage:(NSInteger)page direction:(NSInteger)direction animated:(BOOL)animated; ! - (NSInteger)pageForView:(UIView *)view; - (UIView *)viewForPage:(NSInteger)page; ! @end
֎͔ΒݺΕ͍͍ͯϝιουͷΈΛެ։ @interface ISCyclicPagesView : UIScrollView ! @property (nonatomic, readonly) NSInteger
currentPage; @property (nonatomic, readonly) NSInteger numberOfPages; @property (nonatomic, assign) id <ISCyclicPagesViewDataSource> dataSource; @property (nonatomic, assign) id <ISCyclicPagesViewDelegate> delegate; ! - (void)reloadData; - (void)scrollToPage:(NSInteger)page direction:(NSInteger)direction animated:(BOOL)animated; ! - (NSInteger)pageForView:(UIView *)view; - (UIView *)viewForPage:(NSInteger)page; ! @end
෦ॲཧ༻ͷϓϩύςΟެ։͠ͳ͍ @interface ISCyclicPagesView () ! @property (nonatomic) NSInteger currentPage; @property
(nonatomic) NSInteger numberOfPages; @property (nonatomic, strong) NSArray *reusableViews; ! @end
෦ॲཧ༻ͷఆެ։͠ͳ͍ static NSInteger const ISReusableViewsCount = 3;
• ඞཁेͳΠϯλʔϑΣʔε • ଞͷ෭࡞༻Λؚ·ͳ͍
Өڹൣғͷେ͖͍֦ு view.frame = CGRectMake(10.f, view.frame.origin.x, view.frame.size.width, view.frame.size.height); view.x = 10.f;
Өڹൣғͷେ͖͍֦ு @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
App Library x setX: x setX: ͲͪΒͷx, setX:ͷ࣮͕࣮ߦ͞ΕΔͷ͔ෆఆ
Өڹൣғͷେ͖͍֦ு @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
ϥΠϒϥϦ֎ͷมߋΛͳΔ͘ආ͚Δ [UIView appearance].backgroundColor = [UIColor blueColor]; ! [UIApplication sharedApplication].statusBarHidden =
YES;
Ͳ͜ͰίʔυΛެ։͢Δ͔ʁ
None
ձࣾݻ༗ͷίʔυ߹
Πϯετʔϧߋ৽Λ ؆୯ʹ͢Δʹʁ
http://cocoapods.org
Demo
ϥΠϒϥϦΛॻ͍ͨΒ CocoaPodsʹରԠͤ͞Α͏
ϥΠϒϥϦΛॻ͍ͨΒ podspecΛॻ͜͏
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" => "
[email protected]
" } s.source = { :git => "https://github.com/ishkawa/ISDiskCache.git", :tag => "0.1.1" } s.license = { :type => "MIT", :text => <<-LICENSE ... LICENSE } end podspec
podspecͷஔ͖ʁ
• ϥΠϒϥϦͷϦϙδτϦ • CocoaPodsͷϦϙδτϦ • In HouseͷϦϙδτϦ
• ϥΠϒϥϦͷϦϙδτϦ • CocoaPodsͷϦϙδτϦ • In HouseͷϦϙδτϦ
None
None
pod 'ISDiskCache', :git => ‘https://github.com/ishkawa/ISDiskCache.git', :tag => '0.1.1' Podfile
• ϥΠϒϥϦͷϦϙδτϦ • CocoaPodsͷϦϙδτϦ • In HouseͷϦϙδτϦ
CocoaPods/Specs ͜͜ʹొ͞Ε͍ͯΕ ࣗಈతʹօͷखݩʹೖΔ podspec Pull Request https://github.com/CocoaPods/Specs
https://github.com/CocoaPods/Specs/pull/2780
pod 'ISDiskCache', '~> 0.1.1' Podfile
• ϥΠϒϥϦͷϦϙδτϦ • CocoaPodsͷϦϙδτϦ • In HouseͷϦϙδτϦ
CocoaPods/Specs ಠࣗͷpodspecஔ͖ΛՃͰ͖Δ LINE-Corp/Specs
None
pod repo add in-house https://github.com/ishkawa/CocoaPodsSpecs.git Command
pod 'ISDiskCache', '~> 0.1.1' Podfile
None
LINEͰͷίʔυͷ࠶ར༻ͷ·ͱΊ
• ͔ͤͬ͘ॻ͍ͨίϯϙʔωϯτෳνʔϜͰ࠶ར༻ • ΞϓϦݻ༗Ͱͳ͚ΕϥΠϒϥϦͱͯ͠Γग़ͯ͠ެ։ • ϥΠϒϥϦͷίʔυߦّྑ͘ॻ͘ • CocoaPodsʹରԠͤͯ͞ར༻͘͢͢͠Δ
LINEͰGitHub Enterpriseͱ CocoaPodsΛར༻ͯ͠ ίʔυͷ࠶ར༻ΛਐΊ͍ͯ·͢
• Pull RequestͰίʔυϨϏϡʔ • Ϣχοτςετͷಋೖ ࠷ۙࣾʹ͜ΜͳྲྀΕ͋Γ·͢
None
iOSΤϯδχΞͷׂ = iOSΞϓϦͷ։ൃ
ϓϩάϥϜΛॻ͘ + ͦͷଞଟ
αʔϏεઃܭ UIઃܭ UIϓϩτλΠϐϯά ςετέʔεͷ࡞ શόʔδϣϯͰಈ࡞֬ೝ ϞϯΩʔςετ ར༻౷ܭͷઃܭ Dev Centerͷ࡞ۀ iTunes
Connectͷ࡞ۀ
ϓϩάϥϜΛॻ͘ + ͦͷଞଟ ͬͪ͜ʹूத͍ͨ͠
• اը/σβΠϯઌߦͷϑϩʔ • खް͍QA LINEͷಛ
• اը/σβΠϯઌߦͷϑϩʔ • खް͍QA LINEͷಛ
αʔϏεઃܭ UIσβΠϯ ࣮ QA ͜͜ͰࢀՃ͢Δ
• اը/σβΠϯઌߦͷϑϩʔ • खް͍QA LINEͷಛ
• QAઐ෦͕୲ • ෳਓ͕શόʔδϣϯͷOSͰςετ • ࠶ݱঢ়گΛৄࡉʹใࠂͯ͠Β͑Δ • ༧ͷ3ഒͷෆ۩߹Λൃݟͯ͠Β͑Δ ※ ݸਓͷײͰ͢
ϦϦʔεલޙͷετϨε͕͔ͳΓܰݮ͞ΕΔ
LINEʹiOSΤϯδχΞ͕ ։ൃʹूதͰ͖Δڥ͕͍ͬͯ·͢
LINEͰiOSΤϯδχΞΛืू͍ͯ͠·͢