so easy,直接上代码
UIImage *image = [UIImage imageNamed:@"bg_yuandian"];
UIImage *newImage = [UIImage imageWithCGImage:[image CGImage] scale:image.scale orientation:image.imageOrientation];
[_bg4 setBackgroundColor:[UIColor colorWithPatternImage:newImage]];