0
上自定義單元格設置editingStyle下面的代碼(位於我-viewWillAppear
)成功地實現了作爲tableFooterView細胞:在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;
然而,被註釋掉返回該錯誤的行:對象不能設置 - 只讀屬性或找不到setter
如何設置此單元格的editingStyle插入?
這很有道理。織釘:P – Spindler 2010-07-30 19:24:11