UIImage* myImage = [[UIImage imageNamed:@"img_bg.png"]stretchableImageWithLeftCapWidth:1 topCapHeight:1000];
UIColor *bgColormyImage = [UIColor colorWithPatternImage: myImage];
[self.bigScrollView setBackgroundColor:bgColormyImage];
原文:http://www.cnblogs.com/BinZone/p/4355299.html