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

fix reversedIndexPath if sections are used #21

Merged
merged 1 commit into from
Apr 26, 2017

Conversation

sattler
Copy link
Contributor

@sattler sattler commented Apr 26, 2017

I found an error in the reversedIndexPath method if sections are used. I tested this fix for my own application and it works as expected but if you have a better idea I would be interested to hear about it.
The problem is that the number of rows in section was always determined using the section from the given IndexPath and calling the UITableView method numberOfRows(inSection:). However, if I called the methods in my ViewController the reversedIndexPath should have been used.
#22

@marty-suzuki
Copy link
Owner

Hi, sattler
Thank you for your PR!

I think this fixing is a better way!
I'll merge this.

@marty-suzuki marty-suzuki merged commit a8f8a16 into marty-suzuki:master Apr 26, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants