Deleting rows from a static UITableView at runtime
问题 Is it possible to delete rows from a UITableView at runtime when all of the sections and rows are defined statically in a nib? In the following storyboard scene, can I delete the "Addr 2" field at runtime? In this case I have not provided a data source to the UITableView . 回答1: I don't know about "delete" but you can hide the row using tableView:heightForRowAtIndexPath: . - (void)methodToToggleAddr2CellVisibility { self.addr2CellIsHidden = !self.addr2CellIsHidden; [self.tableView beginUpdates