只要能设置背景色,就能设置背景图片

 用设置背景色的方法,设置一张背景图片:

[self.viewsetBackgroundColor:[UIColorcolorWithPatternImage:[UIImageimageNamed:@"indexbg.jpg"]]];

原文地址:https://www.cnblogs.com/ygm900/p/3098140.html