iOS中使用图片作为颜色的背景图

Objective-C:
    [UIColor colorWithPatternImage:[UIImage imageNamed:@"jpg"]];

Swift:
    UIColor(patterImage: UIImage(named: "jpg")!)

posted @ 2015-12-24 16:18  J_mailbox  阅读(589)  评论(0编辑  收藏  举报