numberOfRowsInSection: not called on reloadData
Be sure not to call reloadData
from within any of the table view's delegate methods. This will cause unpredictable behavior. Also, make sure you did not call beginUpdates
before, and that you only call your reloadData
method from the main thread.
if numberOfSections
returns 0
, numberOfRowsInSection
will not be called.