Iphone 禁用UITableViewCell附件
我想对表中的某些行禁用Iphone 禁用UITableViewCell附件,iphone,ios4,uitableview,Iphone,Ios4,Uitableview,我想对表中的某些行禁用UITableViewCellAccessoryDetailDisclosure按钮。我似乎找不到任何办法来做这件事。我试着做: cell.UITableViewCellAccessoryDetailDisclosureButton.enabled = NO; 但是没有运气。有人知道怎么做吗?您要查找的不是已启用的属性。您要做的是指定在构建UITableViewCell对象时不应披露附件详细信息 因此,在您的-(UITableViewCell*)表视图中:(UITabl
UITableViewCellAccessoryDetailDisclosure
按钮。我似乎找不到任何办法来做这件事。我试着做:
cell.UITableViewCellAccessoryDetailDisclosureButton.enabled = NO;
但是没有运气。有人知道怎么做吗?您要查找的不是
已启用的属性。您要做的是指定在构建UITableViewCell
对象时不应披露附件详细信息
因此,在您的-(UITableViewCell*)表视图中:(UITableView*)表视图cellforrowatinexpath:(nsindepath*)indepath
,只需设置:
cell.accessoryType = UITableViewCellAccessoryNone;
这样就可以去掉电池的配件。我也有同样的问题。如果有什么事发生,我会告诉你的。