Commit bac9f015a1bfb7fba6d2008480b3200bcd5e7bb0
1 parent
5f0bbc57
no message
Showing
3 changed files
with
6 additions
and
0 deletions
CNLiveSettingModule/Classes/AboutUs/CNLiveAboutUsController.m
| @@ -144,6 +144,7 @@ static const NSInteger timeValue = 1.5; | @@ -144,6 +144,7 @@ static const NSInteger timeValue = 1.5; | ||
| 144 | cell.selectionStyle = UITableViewCellSelectionStyleNone; | 144 | cell.selectionStyle = UITableViewCellSelectionStyleNone; |
| 145 | CNLiveSettingModel *model = self.data[indexPath.row]; | 145 | CNLiveSettingModel *model = self.data[indexPath.row]; |
| 146 | cell.model = model; | 146 | cell.model = model; |
| 147 | + cell.lineColor = [UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0]; | ||
| 147 | return cell; | 148 | return cell; |
| 148 | } | 149 | } |
| 149 | 150 |
CNLiveSettingModule/Classes/View/CNLiveSettingCell.h
| @@ -15,6 +15,7 @@ static NSString * const kCNLiveSettingCell = @"CNLiveSettingCell"; | @@ -15,6 +15,7 @@ static NSString * const kCNLiveSettingCell = @"CNLiveSettingCell"; | ||
| 15 | @interface CNLiveSettingCell : UITableViewCell | 15 | @interface CNLiveSettingCell : UITableViewCell |
| 16 | 16 | ||
| 17 | @property (nonatomic, strong) CNLiveSettingModel *model; | 17 | @property (nonatomic, strong) CNLiveSettingModel *model; |
| 18 | +@property (nonatomic, strong) UIColor *lineColor; | ||
| 18 | 19 | ||
| 19 | @end | 20 | @end |
| 20 | 21 |
CNLiveSettingModule/Classes/View/CNLiveSettingCell.m
| @@ -108,6 +108,10 @@ static const NSInteger margin = 12; | @@ -108,6 +108,10 @@ static const NSInteger margin = 12; | ||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | } | 110 | } |
| 111 | +- (void)setLineColor:(UIColor *)lineColor{ | ||
| 112 | + _lineColor = lineColor; | ||
| 113 | + _line.backgroundColor = lineColor; | ||
| 114 | +} | ||
| 111 | - (void)awakeFromNib { | 115 | - (void)awakeFromNib { |
| 112 | [super awakeFromNib]; | 116 | [super awakeFromNib]; |
| 113 | // Initialization code | 117 | // Initialization code |