iOS:fix when reuse viewnode,gradientColor display none
This commit is contained in:
parent
aa368d2e4b
commit
a1c0e8e30c
@ -174,6 +174,8 @@ - (void)blendView:(UIView *)view forPropName:(NSString *)name propValue:(id)prop
|
|||||||
} else if ([name isEqualToString:@"backgroundColor"]) {
|
} else if ([name isEqualToString:@"backgroundColor"]) {
|
||||||
if ([prop isKindOfClass:[NSNumber class]]) {
|
if ([prop isKindOfClass:[NSNumber class]]) {
|
||||||
view.backgroundColor = DoricColor(prop);
|
view.backgroundColor = DoricColor(prop);
|
||||||
|
self.gradientProps = nil;
|
||||||
|
self.gradientSize = CGSizeZero;
|
||||||
} else if ([prop isKindOfClass:[NSDictionary class]]) {
|
} else if ([prop isKindOfClass:[NSDictionary class]]) {
|
||||||
self.gradientProps = prop;
|
self.gradientProps = prop;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user