Skip to content

Commit f0c876c

Browse files
foxsofterfoxsofter
authored andcommitted
tableViewModel bug
1 parent 924c7c4 commit f0c876c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

LPDTableViewKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'LPDTableViewKit'
11-
s.version = '0.1.9'
11+
s.version = '0.2.0'
1212
s.summary = 'LPDTableViewKit, data driven tableview'
1313

1414
# This description is used to generate tags and improve search results.

LPDTableViewKit/Classes/LPDTableViewFactory.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ @implementation LPDTableViewFactory
5353
return nil;
5454
}
5555

56+
- (__kindof id<LPDTableItemViewModelProtocol>)headerWithViewModel:(__kindof id<LPDTableItemViewModelProtocol>)viewModel
57+
tableView:(UITableView *)tableView {
58+
return [self hfWithViewModel:viewModel tableView:tableView];
59+
}
60+
61+
5662
- (__kindof id<LPDTableViewItemProtocol>)tableViewModel:(__kindof id<LPDTableViewModelProtocol>)tableViewModel
5763
footerForTableView:(UITableView *)tableView
5864
atSection:(NSInteger)sectionIndex {
@@ -64,6 +70,12 @@ @implementation LPDTableViewFactory
6470
return nil;
6571
}
6672

73+
- (__kindof id<LPDTableItemViewModelProtocol>)footerWithViewModel:(__kindof id<LPDTableItemViewModelProtocol>)viewModel
74+
tableView:(UITableView *)tableView {
75+
return [self hfWithViewModel:viewModel tableView:tableView];
76+
}
77+
78+
6779
- (__kindof id<LPDTableViewItemProtocol>)hfWithViewModel:(__kindof id<LPDTableItemViewModelProtocol>)viewModel
6880
tableView:(UITableView *)tableView {
6981
Class viewClass = NSClassFromString(viewModel.reuseViewClass);

0 commit comments

Comments
 (0)