Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SearchShowOnMapCell.m « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 338ca113e5f8736479ab1099053c68887cfb5f1c (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
38
39
40
41

#import "SearchShowOnMapCell.h"
#import "UIColor+MapsMeColor.h"
#import "UIKitCategories.h"

static CGFloat const kOffset = 16.;

@implementation SearchShowOnMapCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
  self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  if (self)
    [self.contentView addSubview:self.titleLabel];

  return self;
}

- (void)configTitleLabel
{
  [super configTitleLabel];
  self.titleLabel.frame = CGRectMake(kOffset, INTEGRAL(8.5), 0, 24);
  self.titleLabel.textColor = [UIColor primary];
}

- (void)layoutSubviews
{
  [super layoutSubviews];
  self.titleLabel.width = self.width - self.titleLabel.minX - kOffset;
  self.titleLabel.minX = kOffset;
  self.separatorView.width = self.width;
  self.separatorView.minX = 0;
  self.separatorView.minY = self.height - 1;
}

+ (CGFloat)cellHeight
{
  return 44;
}

@end