//
|
// 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
|