//平铺一个像素的图片到整个

UIImage* myImage = [[UIImage imageNamed:@"img_bg.png"]stretchableImageWithLeftCapWidth:1 topCapHeight:1000];

UIColor *bgColormyImage = [UIColor colorWithPatternImage: myImage];

[self.bigScrollView setBackgroundColor:bgColormyImage];

你可能感兴趣的:(图片)