The following code (located in my -viewWillAppear
) successfully implements a cell as a tableFooterView:
CGRect cellRect = [self.tableView rectForRowAtIndexPath:0];
UITableViewCell *footerCell = [[UITableViewCell alloc] initWithFrame:cellRect];
//footerCell.editingStyle = UITableViewCellEditingStyleInsert;
footerCell.textLabel.text = @"Add New Class";
self.tableView.tableFooterView = footerCell;
However, the line that is commented out returns this error: object cannot be set - either readonly property or no setter found
How can I set the editingStyle of this cell to insert?