0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
- (void)config
{
self.contentView.backgroundColor = [UIColor NaviCellBgColor];
self.selectionStyle = UITableViewCellSelectionStyleNone;
UIImageView *theDisclosureView = _disclosureView;
UILabel *theLabel = _titleLabel;
if (self.isHighlighted)
{
theLabel.shadowColor = [UIColor TextShadowColor];
theLabel.shadowOffset = CGSizeMake(0.0f, -0.5f);
self.contentView.backgroundColor = [UIColor NaviCellBgHighlightColor];
theLabel.textColor = [UIColor GreenTextColor];
self.contentView.backgroundColor = [UIColor NaviCellBgHighlightColor];
theDisclosureView.image = [UIImage imageNamed:@"Button_Disclosure_touch"];
}
else
{
theLabel.shadowColor = [UIColor TextShadowColor];
theLabel.shadowOffset = CGSizeMake(0.0f, -0.5f);
self.contentView.backgroundColor = [UIColor NaviCellBgHighlightColor];
theLabel.textColor = [UIColor GreenTextColor];
self.contentView.backgroundColor = [UIColor NaviCellBgColor];
theDisclosureView.image = [UIImage imageNamed:@"Button_Disclosure"];
}
UIActivityIndicatorView *theIndicator = _loadingIndicator;
if (_loading)
[theIndicator startAnimating];
else
[theIndicator stopAnimating];
UILabel *theTitleLabel = _titleLabel;
theTitleLabel.textColor = [UIColor GreenTextColor];
}
Код вид культурного европэйця. Справжний европейский кодстайл.
Запостил:
Psionic ,
23.09.2014 (Updated 28.03.2018 )
Комментарии (0) RSS