Swift3 ile renklendirmede Hexcode Kullanımı

Yakup Ad
Yakup Ad
Aug 25, 2017 · 1 min read

Aşağıdaki extensions’ı yeni oluşturduğunuz UIColor+colorFromHex.swift isimli sınıfın içerisine yerleştirin.

UIColor.colorFromHex(hexString:”#ffffff”)

şeklinde istediğiniz yerden ulaşarak kullanabilirsiniz.Örneğin;

self.buttonRegister.tintColor = UIColor.colorFromHex(hexString:”#ffffff”)
)

Written by

Yakup Ad

Software Engineer at Doğuş Teknoloji

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade