blob: 975e82f56ee417b56b0c62333046afdd314cc4c0 (
plain)
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
35
36
37
|
#import "MWMTableViewCell.h"
#import "UIColor+MapsMeColor.h"
@implementation MWMTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self)
[self configure];
return self;
}
- (void)awakeFromNib
{
[self configure];
}
- (void)configure
{
self.backgroundColor = [UIColor white];
self.textLabel.textColor = [UIColor blackPrimaryText];
self.detailTextLabel.textColor = [UIColor blackSecondaryText];
self.selectedBackgroundView = [[UIView alloc] init];
self.selectedBackgroundView.backgroundColor = [UIColor pressBackground];
}
@end
@implementation MWMTableViewSubtitleCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
return [super initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:reuseIdentifier];
}
@end
|