1 parent 7bfbda9 commit 63e66e3Copy full SHA for 63e66e3
1 file changed
Coding_iOS/Views/Cell/ScreenCell.m
@@ -72,21 +72,7 @@ - (void)setTitle:(NSString *)title {
72
73
- (void)setColor:(NSString *)color {
74
_color = color;
75
-
76
- /*
77
- static int i = 0;
78
79
- if (i % 2 == 0) {
80
- _tagButton.tintColor = [UIColor redColor];
81
82
- }else {
83
- _tagButton.tintColor = [UIColor yellowColor];
84
85
- }
86
- i++;
87
- */
88
89
- _tagButton.tintColor = [UIColor colorWithHexString:color];
+ _tagButton.tintColor = [UIColor colorWithHexString:[NSString stringWithFormat:@"0x%@", [color substringFromIndex:1]]];
90
}
91
92
@end
0 commit comments