iOS   发布时间:2022-05-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了objective-c – UITableViewCellAccessoryDe​​tailDisclosureButton和UITableViewCellAccessoryDisclosureIndicator之间有什么区别吗大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我创建了一个方法 – (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { 对于UITableViewCellAccessoryDe​​tailDisclosureButton. 现在我想使用UITableViewCellAccesso
我创建了一个方法 – (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath {
对于UITableViewCellAccessoryDe​​tailDisclosureButton.

现在我想使用UITableViewCellAccessoryDisclosureInDicator代替UITableViewCellAccessoryDe​​tailDisclosureButton.

UITableViewCellAccessoryDe​​tailDisclosureButton和UITableViewCellAccessoryDe​​tailDisclosureButton之间有什么区别吗?

解决方法

Apple HIG建议您使用UITableViewCellAccessoryDisclosureInDicator浏览分层数据,并使用UITableViewCellAccessoryDe​​tailDisclosureButton执行某些操作,可能会调出可能会更改数据的编辑视图.但是,大多数程序员似乎忽略了这一点.

你可以实现委托方法tableView:didSELEctRowATindexPath:像这样:

- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath {
    [self tableView:tableView didSELEctRowATindexPath:indexPath];
}

或相反亦然.

大佬总结

以上是大佬教程为你收集整理的objective-c – UITableViewCellAccessoryDe​​tailDisclosureButton和UITableViewCellAccessoryDisclosureIndicator之间有什么区别吗全部内容,希望文章能够帮你解决objective-c – UITableViewCellAccessoryDe​​tailDisclosureButton和UITableViewCellAccessoryDisclosureIndicator之间有什么区别吗所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。