From the UITableView
documentation
beginUpdates
Begin a series of method calls that insert, delete, or
select rows and sections of the receiver.
That means, you should not use this unless you are inserting, deleting or selecting. You are doing neither of these.
Also, you should end beginUpdates
with endUpdates
, not reloadData
. Documentation:
This group of methods must conclude with an invocation of endUpdates.