I am working on UITableView. My application works fine with iOS 4 devices, but when I install the same app on an iOS 5 device, the UITableView method [tableView beginUpdates] and [tableView endUpdates] does not perform the required task.
Any ideas of what the problem is?
There are two things I’m seeing in your code, you are not actually inserting/deleting any new row in your UITableView and the beginAnimations block is only used for that purpose. From the doc:
The second things that I’m seeing is that you are also using animation blocks that are now discouraged in the documentation:
What I would try is to move to the new code with a conditional statement, depending on the iOS version where your app is running.