Q:

Have to scroll table view to enable didSelectRowAtIndexPath

I am facing a very strange bug and have no idea what is going on. Basically the behavior is: I have to scroll my table view in order that the didSelectRowAtIndexPath event is being sent. It does not matter how ofter I try to select a row - didSelectRowAtIndexPath is not been sent. But after I scroll the table view (just a little bit is enough) then the next click on a cell works and didSelectRowAtIndexPath is sent. 

A:

Meanwhile I have found the bug. I searched thru the GIT history for the first commit where the error occurs. By comparing the version I found out that I called 'tableView.reloadData()' on a background thread instead of the main thread. This created this very strange behavior.

