iOS:when set corner,apply clipToBounds to yes
This commit is contained in:
parent
3e3e8266d4
commit
ef2e27f271
@ -198,6 +198,7 @@ - (void)blendView:(UIView *)view forPropName:(NSString *)name propValue:(id)prop
|
||||
view.layer.borderWidth = width;
|
||||
view.layer.borderColor = color.CGColor;
|
||||
} else if ([name isEqualToString:@"corners"]) {
|
||||
self.view.clipsToBounds = YES;
|
||||
if ([prop isKindOfClass:NSNumber.class]) {
|
||||
view.layer.cornerRadius = [(NSNumber *) prop floatValue];
|
||||
} else if ([prop isKindOfClass:NSDictionary.class]) {
|
||||
|
Reference in New Issue
Block a user