单军华
2017-07-12 20d1260d26b028897f3c0935c12fc35aa37b2e93
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
42
43
44
45
46
47
48
49
50
51
52
//
//  HotelCell.m
//  istanbul
//
//  Created by WindShan on 2017/6/16.
//  Copyright © 2017年 WindShan. All rights reserved.
//
 
#import "HotelCell.h"
#import "GloriaLabel.h"
 
@interface HotelCell()
{
    
}
@property (nonatomic, strong)     GloriaLabel * hotelName;
 
@end
 
@implementation HotelCell
 
 
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.hotelName.frame = CGRectMake(20, 15, SCREEN_WIDTH-40, 30);
 
}
 
 
- (GloriaLabel *) hotelName
{
    if(!_hotelName)
    {
        _hotelName = [[GloriaLabel alloc] initWithFrame:CGRectMake(10+50+10+80, 28,150, 14)];
        _hotelName.font = [UIFont systemFontOfSize:16];
        _hotelName.textAlignment = UITextAlignmentLeft;
        _hotelName.textColor = kUIColorFromRGB(0x5a5a5a);
        [self.contentView addSubview:_hotelName];
    }
    
    return _hotelName;
}
 
- (void)setItemView:(NSString*)hotelName
{
    //self.contentView.backgroundColor = [UIColor blueColor];
    [self.hotelName setText:hotelName];
}
 
@end