Le code suivant (situé dans mon -viewWillAppear
) met en œuvre avec succès une cellule comme tableFooterView:Réglage editingStyle sur la cellule personnalisée dans 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;
Cependant, la ligne qui est commentée renvoie cette erreur: objet ne peut pas être - soit une propriété readonly, soit aucun setter trouvé
Comment puis-je définir le style d'édition de cette cellule à insérer?
Cela a du sens. Chevilles Darn: P – Spindler