无法直接设置,可以通过如下方法进行设置:
backgroundView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"123"]];
这样出来就是背景图片了
![大笑](http://static.blog.csdn.net/xheditor/xheditor_emot/default/laugh.gif)
不过这样实现的背景需要背景图片配合,不然会出现类似于Windows桌面那种多个图片拼起来的效果,所以需要调整好view的大小
无法直接设置,可以通过如下方法进行设置:
backgroundView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"123"]];
不过这样实现的背景需要背景图片配合,不然会出现类似于Windows桌面那种多个图片拼起来的效果,所以需要调整好view的大小