摘要:
//返回一个RGB颜色 class func getColor(r:CGFloat,g:CGFloat,b:CGFloat,l:CGFloat = 1) ->UIColor{ let color = UIColor(red: r/255.0, green: g/255.0, blue: b/255. 阅读全文
posted @ 2016-11-02 13:52
zuidap
阅读(831)
评论(0)
推荐(0)
摘要:
//MARK:- UIScrollView let scrollView = UIScrollView() scrollView.delegate = target scrollView.backgroundColor = UIColor.groupTableViewBackground scrol 阅读全文
posted @ 2016-11-02 13:49
zuidap
阅读(432)
评论(0)
推荐(0)
摘要:
//设置textfile的Placeholder的颜色和字体大小 nameText.attributedPlaceholder = NSAttributedString.init(string: "用户名", attributes: [NSForegroundColorAttributeName: 阅读全文
posted @ 2016-11-02 12:07
zuidap
阅读(320)
评论(0)
推荐(0)