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
Manage Styles in iOS - 公司內分享會
Search
Li-Hsuan Chen
August 23, 2016
Programming
0
68
Manage Styles in iOS - 公司內分享會
Li-Hsuan Chen
August 23, 2016
Tweet
Share
More Decks by Li-Hsuan Chen
See All by Li-Hsuan Chen
The UX thinking of PAY ID
vc7
2
390
From Onboarding to Value Delivering in iOS
vc7
0
220
Merciless Refactoring
vc7
0
610
Protocol 的實例、測試和心得
vc7
2
700
共有経済
vc7
0
120
.gitignore
vc7
1
65
Git Workshop 03
vc7
0
90
Git Workshop 02
vc7
0
80
Escaping Closures in Swift - 公司內分享會
vc7
1
190
Other Decks in Programming
See All in Programming
Deep Dive into React Stream/Serialize
mugi_uno
3
760
パフォーマンスを求めてDBに機能を寄せる戦略
aoyagikouhei
0
110
CDKコントリビュートの最初の壁を越えよう! -簡単issueの見つけ方-
badmintoncryer
3
350
AWS CDKコントリビュートTIPS / aws-cdk-contribution-tips
gotok365
4
540
Fast JSX: Don't clone props object #28768
yossydev
1
220
Exploring the Implementation of “t.Run”, “t.Parallel”, and “t.Cleanup”
akarin
1
140
仕様と実装で学ぶOpenTelemetry
drumato
0
100
PHPはいつから死んでいるかの調査
chiroruxx
2
430
Site Reliability Engineering for GMO
pyama86
9
1.1k
Going beyond Apache Parquet's default settings
xhochy
0
140
Open standards for building event-driven applications in the cloud
meteatamel
0
190
Micro Frontends for Java Microservices - Utah JUG 2024
mraible
PRO
1
110
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.6k
GraphQLの誤解/rethinking-graphql
sonatard
56
9.3k
Building an army of robots
kneath
300
41k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
26
2.3k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
41
4.4k
Statistics for Hackers
jakevdp
790
220k
A better future with KSS
kneath
231
16k
Building a Modern Day E-commerce SEO Strategy
aleyda
22
6.4k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
660
120k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
22
1.6k
Navigating Team Friction
lara
179
13k
Design by the Numbers
sachag
274
18k
Transcript
Manage Styles cዥໞ
self.view.backgroundColor = UIColor(red: 129/255, green: 216/255, blue: 208/255, alpha: 1)
self.view.backgroundColor = UIColor(red: 129/255, green: 216/255, blue: 208/255, alpha: 1)
㟬ಘ㣛ʁ
Easy to Read and Reuse
䍲➮《そ㶶
self.view.backgroundColor = UIColor.tiffanyBlue()
self.view.backgroundColor = UIColor.tiffanyBlue() ݱࡏಘ㣛䆩ʁ
extension UIColor { /// ᤅᢹೌཟɼ৭ᛰҝ RGB(129,216,208) class func tiffanyBlue() ->
UIColor { return UIColor(red: 129/255, green: 216/255, blue: 208/255, alpha: 1) } } Ṝᒬሜ
Try it
UIColor UIFont UIImage ஈམ ඪ४ࣈ ܯࠂจࣈ -PHP എܠᅷ QMBDFIPMEFS ṛඪ४৭
ओ৭ථ ܯࠂᰓ৭
Q&A