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

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

相关文章: