将图片设置为背景颜色的方法

将图片设置为背景颜色的方法,因为比较经常使用,因此收纳到这里方便查阅。code

self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"图片名称"]];
相关文章
相关标签/搜索