Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Re-corrected the method ,

	 - (UIView *)getViewInFantasyViewWithIndex:(NSInteger)index .
  • Loading branch information...
commit 9e8f3fdb233c310c8df93c5e7566c54645ea4109 1 parent 9793526
@wxin9 authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 FantasyView/FantasyView.m
View
7 FantasyView/FantasyView.m
@@ -80,6 +80,13 @@ - (void)setPagingEnabled:(BOOL)pagingEnabled{
}
- (UIView *)getViewInFantasyViewWithIndex:(NSInteger)index{
+ NSIndexPath *indexPath = [NSIndexPath indexPathForRow:index inSection:0];
+ UITableViewCell *cell = [self.tableView.dataSource tableView:self.tableView cellForRowAtIndexPath:indexPath];
+ UIView *contentView = [cell viewWithTag:kTableView_ContentView_Tag];
+
+ if (contentView) {
+ return contentView;
+ }
return nil;
}
Please sign in to comment.
Something went wrong with that request. Please try again.