check for key on correct class
This commit is contained in:
+3
-2
@@ -648,8 +648,9 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||||||
%hook UITableViewCell
|
%hook UITableViewCell
|
||||||
- (void)_layoutSystemBackgroundView {
|
- (void)_layoutSystemBackgroundView {
|
||||||
%orig;
|
%orig;
|
||||||
NSString *backgroundViewKey = class_getInstanceVariable(self.class, "_colorView") ? @"_colorView" : @"_backgroundView";
|
UIView *systemBackgroundView = [self valueForKey:@"_systemBackgroundView"];
|
||||||
((UIView *)[[self valueForKey:@"_systemBackgroundView"] valueForKey:backgroundViewKey]).backgroundColor = [UIColor blackColor];
|
NSString *backgroundViewKey = class_getInstanceVariable(systemBackgroundView.class, "_colorView") ? @"_colorView" : @"_backgroundView";
|
||||||
|
((UIView *)[systemBackgroundView valueForKey:backgroundViewKey]).backgroundColor = [UIColor blackColor];
|
||||||
}
|
}
|
||||||
- (void)_layoutSystemBackgroundView:(BOOL)arg1 {
|
- (void)_layoutSystemBackgroundView:(BOOL)arg1 {
|
||||||
%orig;
|
%orig;
|
||||||
|
|||||||
Reference in New Issue
Block a user