IOS设置图片背景

在UIViewController里面这样设置:

self.view.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"1.jpg"] ];
原文地址:https://www.cnblogs.com/stonehat/p/4123164.html