在这里,cornerRadius 不适用于 PatternImage,你能帮帮我吗?
- (void)viewDidLoad
{
[super viewDidLoad];
myView.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"background.png"]];
myView.layer.cornerRadius = 10.0;
}
在这里,cornerRadius 不适用于 PatternImage,你能帮帮我吗?
- (void)viewDidLoad
{
[super viewDidLoad];
myView.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"background.png"]];
myView.layer.cornerRadius = 10.0;
}