在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
import UIKit extension UIColor { convenience init(hex:Int, alpha:CGFloat=1.0) { let red = CGFloat((hex & 0xFF0000) >> 16)/255.0 let green = CGFloat((hex & 0xFF00) >> 8) /255.0 let blue = CGFloat ((hex &0xFF))/255.0 self.init(red:red, green:green, blue:blue, alpha:alpha) }
struct MKColor { static let Red = UIColor(hex : 0xF44336) static let Ping = UIColor(hex:0xE91E63) } } |
请发表评论