我允许在编辑模式下使用
allowsSelectionDuringEditing =是;
但在选择时,我想要添加附件单元,问题是附件没有出现
我在cellForRowAtIndexPath中更改了它
if (self.editing) {
NSLog(@" Editing mode ");
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
}
else {
// cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator ;
}我确保它进入if语句,因为它显示编辑模式
任何建议
发布于 2011-06-08 19:11:21
使用
editingAccessoryType
而不是
accessoryType
有关更多细节,请访问http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UITableViewCell_Class/Reference/Reference.html
https://stackoverflow.com/questions/6277013
复制相似问题