I’m writing an iOS app and I have a UITableView that starts out with 2 sections. What I want is that if someone deletes all of the rows from the first section then the entire section will disappear. My question is, when I delete section 0, does the remaining section now become section 0? Or is it still considered section 1?
Share
Yes, of course. You need to update your data model properly before committing the deletion, or UITableView will most likely throw some heavy NSExceptions against you (personal experience).