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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//
// KWMNewGiftCardVC.m
// iCemarose
//
// Created by HouWeiBin on 2017/1/23.
// Copyright © 2017年 kollway. All rights reserved.
//
#import "KWMNewGiftCardVC.h"
@interface KWMNewGiftCardVC ()
@end
@implementation KWMNewGiftCardVC
- (void)viewDidLoad {
[super viewDidLoad];
[self.tbvGiftCard registerNib:[UINib nibWithNibName:@"KWMNewGiftCardCell" bundle:nil] forCellReuseIdentifier:@"KWMNewGiftCardCell"];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
}
+(NSString *)kwmTag{
return @"KWMNewGiftCardVC";
}
-(void)loadData{
}
-(void)reLoadData{
}
-(UITableView *)targetTableView{
return self.tbvGiftCard;
}
-(void)kwm_onClickAddGift:(BUYCheckout *)checkout{
self.checkout = checkout;
[self.tbvGiftCard reloadData];
if(self.delegate != nil){
[self.delegate kwm_addedGiftCard:checkout];
}
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return 20;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
return 100;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
KWMNewGiftCardCell *cell = [tableView dequeueReusableCellWithIdentifier:@"KWMNewGiftCardCell"];
// cell.delegate = self;
// if(self.checkout!=nil&&self.checkout.giftCardsArray!=nil){
// BUYGiftCard *giftCard = [self.checkout.giftCardsArray objectAtIndex:indexPath.row];
// [cell setData:giftCard];
// }
return cell;
}
@end