Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uitableview delegate methods #2

Closed
bkoc opened this issue Jan 9, 2014 · 4 comments
Closed

uitableview delegate methods #2

bkoc opened this issue Jan 9, 2014 · 4 comments

Comments

@bkoc
Copy link

bkoc commented Jan 9, 2014

uitableview delegate methods are not getting called after setting tableview delegate to scroll proxy.

e.g.

  • (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;

In the demo project after calling

[self.tableView reloadData];

I thought that there is something wrong with method forwarding implementation.

But by calling

        [((UITableViewController <UITableViewDelegate>*)(self.tableView.delegate)) tableView:self.tableView heightForHeaderInSection:0];

instead of reloading tableview that method is forwarded correctly. Hence i can confirm that method forwarding is working.

It might be that uitableview has it's own delegate check mechanism internally and ignores to call delegate methods with current implementation. It sees an object conforming to UIScrollViewDelegate but not UITableViewDelegate.

@cannyboy
Copy link

Have the same problem.. Seems similar to this issue on another library (methods not being forwarded): Adrian2112/ILRemoteSearchBar#1

@ninjinkun ninjinkun reopened this Jan 10, 2014
@ninjinkun
Copy link
Owner

Sorry I missed to close.

@ninjinkun
Copy link
Owner

Thanks to reporting.
I tried to fix this problem on #3 . Please check my pull request.

@ninjinkun
Copy link
Owner

I released v0.2 including fixed issue and made update pull request to CocoaPods. Thanks @bkoc @cannyboy !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants