UIImageView不支持图片平铺,通过设置颜色纹理,会有平铺效果。
UIImage* bgImage = [UIImage imageNamed:@"bg.png"];
[self.view setBackgroundColor:[UIColor colorWithPatternImage:bgImage]];
UIImageView不支持图片平铺,通过设置颜色纹理,会有平铺效果。
UIImage* bgImage = [UIImage imageNamed:@"bg.png"];
[self.view setBackgroundColor:[UIColor colorWithPatternImage:bgImage]];