//
//  RouteCell.m
//  ArcGis
//
//  Created by Mac Book DQ02 on 16/3/17.
//  Copyright © 2016年 Xu Mengzhu. All rights reserved.
//

#import "RouteCell.h"

@implementation RouteCell

-(instancetype)init
{
    self = [super init];
    if (self) {
        
    }
    return self;
}

-(void)setWithModel:(RouteModel *)model
{
        self.routeId = model.number;
        self.routeName.text = model.name;
        self.routeDistance.text = model.distance;
        self.routeTime.text = model.time;
        self.routeCalorie.text = model.calorie;
        self.routeLevel.text = model.level;
}

-(void)setNormalBb
{
    WS(ws);
    UIView* bgview = [[UIView alloc]initWithFrame:ws.frame];
    bgview.opaque = YES;
    bgview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg_default.png"]];
    [ws setBackgroundView:bgview];
}



- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
