romaonthego / RETableViewManager

Powerful data driven content manager for UITableView.
MIT License
2.48k stars 430 forks source link

fixed invalid next responder check if not found #233

Open adrum opened 9 years ago

adrum commented 9 years ago

A bug exists when indexPathForNextResponderInSectionIndex: on RETableViewCell.m if the sections do not match. If not, the value is set to -1. The for loop below automaticall adds 1 to the unsigned -1, which makes it 0. Thus, the for loop condition was met when it shouldn't have been.

By setting it to -2 then subtracting the number of items in the section, the for loop conidition will never be met when the section is not equal.

XBeg9 commented 8 years ago

@adrum please make your branch up to date with master.