设置uiview背景图的方法之一

self.view.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"1.jpg"] ];

原文地址:https://www.cnblogs.com/luyinghuai/p/2184035.html