Permalink
Browse files

Re-corrected the method ,

	 - (UIView *)getViewInFantasyViewWithIndex:(NSInteger)index .
  • Loading branch information...
@wxin9
@wxin9 committed Jul 4, 2012
1 parent 9793526 commit 9e8f3fdb233c310c8df93c5e7566c54645ea4109
Showing with 7 additions and 0 deletions.
  1. +7 −0 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;
}

0 comments on commit 9e8f3fd

Please sign in to comment.