alekseyn / EasyTableView

Horizontal and vertical scrolling table views for iOS
BSD 3-Clause "New" or "Revised" License
584 stars 157 forks source link

Way of deselecting selected cell programmatically #18

Closed MihalisL closed 12 years ago

MihalisL commented 12 years ago

Hi,

is there a proper way of deselecting any previously selected cell of the EasyTableView? Suppose there is a cell selected, and I want to deselect it by triggering an event that does not involve selecting a different cell. How would I do that?

I have accessed the tableView property of the EasyTableView and called deselectRowAtIndexPath on the selected indexPath but to no avail...

Thanks in advance,

Mihalis

alekseyn commented 12 years ago

I have not tested it, but does invoking setSelectedIndexPath:nil work without blowing up? Let me know if that works or requires a fix.

MihalisL commented 12 years ago

No fix needed, it works fine.

Thank you!

Mihalis