Skip to content

Commit

Permalink
tableViewModel bug
Browse files Browse the repository at this point in the history
  • Loading branch information
foxsofter authored and foxsofter committed Dec 23, 2016
1 parent 924c7c4 commit f0c876c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LPDTableViewKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'LPDTableViewKit'
s.version = '0.1.9'
s.version = '0.2.0'
s.summary = 'LPDTableViewKit, data driven tableview'

# This description is used to generate tags and improve search results.
Expand Down
12 changes: 12 additions & 0 deletions LPDTableViewKit/Classes/LPDTableViewFactory.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ @implementation LPDTableViewFactory
return nil;
}

- (__kindof id<LPDTableItemViewModelProtocol>)headerWithViewModel:(__kindof id<LPDTableItemViewModelProtocol>)viewModel
tableView:(UITableView *)tableView {
return [self hfWithViewModel:viewModel tableView:tableView];
}


- (__kindof id<LPDTableViewItemProtocol>)tableViewModel:(__kindof id<LPDTableViewModelProtocol>)tableViewModel
footerForTableView:(UITableView *)tableView
atSection:(NSInteger)sectionIndex {
Expand All @@ -64,6 +70,12 @@ @implementation LPDTableViewFactory
return nil;
}

- (__kindof id<LPDTableItemViewModelProtocol>)footerWithViewModel:(__kindof id<LPDTableItemViewModelProtocol>)viewModel
tableView:(UITableView *)tableView {
return [self hfWithViewModel:viewModel tableView:tableView];
}


- (__kindof id<LPDTableViewItemProtocol>)hfWithViewModel:(__kindof id<LPDTableItemViewModelProtocol>)viewModel
tableView:(UITableView *)tableView {
Class viewClass = NSClassFromString(viewModel.reuseViewClass);
Expand Down

0 comments on commit f0c876c

Please sign in to comment.