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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Lihsuan Chen
August 23, 2016
Programming
120
0
Share
Manage Styles in iOS - 公司內分享會
Lihsuan Chen
August 23, 2016
More Decks by Lihsuan Chen
See All by Lihsuan Chen
iPlayground 2025 - 接⼿ 10年⼤雜燴:專案現代化與產品開發的挑戰
vc7
0
180
The UX thinking of PAY ID
vc7
2
500
From Onboarding to Value Delivering in iOS
vc7
0
310
Merciless Refactoring
vc7
0
820
Protocol 的實例、測試和心得
vc7
2
840
共有経済
vc7
0
200
.gitignore
vc7
1
130
Git Workshop 03
vc7
0
160
Git Workshop 02
vc7
0
140
Other Decks in Programming
See All in Programming
AIエージェントの隔離技術の徹底比較
kawayu
0
440
GitHub Copilot CLIのいいところ
htkym
2
1.2k
AI駆動開発で崩れていくコードベースを立て直す
kyoko_nr_nr
1
390
ふつうのFeature Flag実践入門
irof
6
3.3k
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.8k
関係性から理解する"同一性"の型用語たち
pvcresin
2
600
3Dシーンの圧縮
fadis
1
450
RTSPクライアントを自作してみた話
simotin13
0
310
Inspired By RubyKaigi (EN)
atzzcokek
0
370
バックエンドにElysiaJSを採用して気付いた、良い点・悪い点
wanko_it
1
190
OSもどきOS
arkw
0
270
Swiftのレキシカルスコープ管理
kntkymt
0
200
Featured
See All Featured
A Tale of Four Properties
chriscoyier
163
24k
Code Reviewing Like a Champion
maltzj
528
40k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
Crafting Experiences
bethany
1
160
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
How to make the Groovebox
asonas
2
2.2k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Embracing the Ebb and Flow
colly
88
5.1k
The SEO identity crisis: Don't let AI make you average
varn
0
480
Automating Front-end Workflow
addyosmani
1370
210k
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
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