Des*_*023 5 iphone uitableview
我一直在努力使用一个单元格披露按钮......首先它说它在我使用时被折旧:
-(UITableViewCellAccessoryType)tableView:(UITableView *)tableView accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath {
return UITableViewCellAccessoryDetailDisclosureButton;
}
Run Code Online (Sandbox Code Playgroud)
所以我评论说,并使用以下内容将公开内容添加到configureCell中的单元格:
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
cell.editingAccessoryType = UITableViewCellAccessoryNone;
Run Code Online (Sandbox Code Playgroud)
但是现在我的披露按钮什么也没做.我需要添加什么才能使"公开"按钮生效.我所有的谷歌搜索都提出了其他折旧的方法.任何帮助或指针将不胜感激.
Jam*_*ton 14
如果您确实需要详细信息披露按钮,请确保将您的电池附件类型设置为UITableViewCellAccessoryDetailDisclosureButton.(您的示例代码显示UITableViewCellAccessoryDisclosureIndicator.)您在表视图委托的tableView:accessoryButtonTappedForRowWithIndexPath:方法中处理详细信息披露按钮.您可以在表视图委托的tableView:didSelectRowAtIndexPath:方法中处理行选择(无论附件视图是什么).
| 归档时间: |
|
| 查看次数: |
7115 次 |
| 最近记录: |