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
Cocoa Touch Frameworkあるある
Search
andfactory, inc.
October 25, 2018
Programming
0
330
Cocoa Touch Frameworkあるある
PKPK-Carnageさんが10.25and factory beer bash #4 若手エンジニアLT - スマホアプリ開発あるある編で登壇した資料です。
andfactory, inc.
October 25, 2018
Tweet
Share
More Decks by andfactory, inc.
See All by andfactory, inc.
UIViewのレイアウト更新メソッドを整理する
andfactory
0
380
Android開発初心者にありがちなこと
andfactory
0
230
Codableあるある
andfactory
0
200
Androidエンジニアあるある
andfactory
0
210
Collectionの罠
andfactory
0
170
iOS開発に慣れてきた時にやりがちあるある
andfactory
0
180
社内勉強会資料 - スクラム・アジャイル開発
andfactory
0
570
Other Decks in Programming
See All in Programming
Goのエラースタックトレースの歴史と今後
sonatard
10
1.7k
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
970
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
4
1k
Amazon SQSコンシューマー疎結合への旅 - 出張! #DevelopersIO IT技術ブログの中の人が語る勉強会 #3
quiver
0
300
使ってみよう Azure AI Document Intelligence
kosmosebi
2
360
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
380
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
1k
What We Can Learn From OSS
inouehi
0
430
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
420
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
120
Kotlin Multiplatform at Stable and Beyond (Android Makers 2024)
zsmb
0
430
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
27
8.5k
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
6
3.4k
Web development in the modern age
philhawksworth
203
10k
Rebuilding a faster, lazier Slack
samanthasiow
74
8.2k
How GitHub (no longer) Works
holman
305
140k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
222
21k
Code Review Best Practice
trishagee
56
15k
KATA
mclloyd
16
12k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
22
1.6k
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
26
2.3k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
20
1.7k
The MySQL Ecosystem @ GitHub 2015
samlambert
244
12k
Transcript
CocoaTouchFramework͋Δ͋Δ 10/25 and factory, beer bash #4 PKPK-Carnage 1
About me • iOSྺ2 • ᗡྨ͕͖ • Qiita → @PKPK-Carnage
• Github → PKPK-Carnage • Twitter → @PKPK-Carnage 2
Framework͋Δ͋Δͦͷ1 3
ͦͦFramework։ൃࣗମ͕͋Δ͋ΔͰͳ͍ɻ 4
Framework։ൃͷͭΒΈ • ใ͕ΞϓϦଆʹൺͯগͳ͍ • ํ๏Λߟ͑ͳ͍ͱ͍͚ͳ͍ • ίʔυ্ͷ੍ݶɺಠࣗͷϧʔϧ • ఆ֎ͷ༻ํ๏ͷରࡦʢݶք͕͋Δʣ •
Ϣʔβʔ͕ΤϯδχΞͰ͋Δ 5
Framework͋Δ͋Δͦͷ2 6
SwiftͰ࡞ͯ͠͠·͏ 7
(PPE #BE • Objective-CΑΓ؆୯Ͱ҆શ • ϝϯς͍͢͠ • ϑΝΠϧ͕ݮΔ 8 •
όʔδϣϯͷ • ݹ͍SwiftΛ͍ͨ͘ͳ͍
݁ہObjective-CͰ࡞Δͷָ͕ͩͱؾͮ͘ 9
Framework͋Δ͋Δͦͷ3 10
ϦιʔεΛऔಘͰ͖ͳͯ͘যΔ 11
ྫ: UIImage 12 init?(named name: String)ɺImageLiteral mainͷBundle(ΞϓϦଆ)͔Βࣗಈऔಘͯ͠͠·͏ɻ
Framework༻ͷinitΛ͏ 13 UIImage͚ͩͰͳ͘ɺUINibUIStoryBoardͳͲɺ Resource͔ΒΠϯελϯεΛੜ͢Δͷɺ BundleΛҾ͖ʹ࣋ͭΠχγϟϥΠβΛ༻͢Δɻ
Framework͋Δ͋Δͦͷ4 14
Ͳ͏ͯ͠ImageLiteralΛ͍ͨ͘ͳΔ 15
ϋοΫ͢ΕͰ͖Δ 16
17 _ExpressibleByImageLiteral
( as FrameworkImageLiteral).image͍ͩ͞ 18
19
Framework͋Δ͋Δͦͷ5 20
࡞ͬͨϑϨʔϜϫʔΫΛͬͯΒ͑ͨΒخ͍͠ 21
·ͱΊ • CocoaTouchFrameworkͱΞϓϦͱͰߟ͑Δ͖͜ͱ͕ҧ͏ • తʹԠͯ͡ݴޠΛબఆ͢Δͱ͜Ζ͔Β࢝Ίͨํ͕͍͍ɻ • ϦιʔεΛऔಘ͢Δͱ͖BundleʹؾΛ͚ͭΔ • Framework্Ͱ͢ΕImageLiteralΛ͑Δ •
ͬͯΒ͑ͨΒخ͍͠ 22