KWMGiftCardCell.m 746 Bytes
Newer Older
houweibin committed
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
//
//  KWMGiftCardCell.m
//  iCemarose
//
//  Created by HouWeiBin on 16/9/28.
//  Copyright © 2016年 kollway. All rights reserved.
//

#import "KWMGiftCardCell.h"

@implementation KWMGiftCardCell

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

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

    // Configure the view for the selected state
}

-(void)onClickRemove:(id)sender{
    if(self.delegate!=nil){
        [self.delegate kwm_onClickRemove:self.giftCard];
    }
}

-(void)setData:(BUYGiftCard *)giftCard{
    self.giftCard = giftCard;
    self.lbCardNum.text = [NSString stringWithFormat:@"******%@",self.giftCard.lastCharacters];
}

@end