Is there any difference between UITableViewCellAccessoryDetailDisclosureButton and UITableViewCellAccessoryDisclosureIndicator

I created a method - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { for UITableViewCellAccessoryDetailDisclosureButton.

Now I want to use UITableViewCellAccessoryDisclosureIndicatorinstead UITableViewCellAccessoryDetailDisclosureButton.

Is there any difference between UITableViewCellAccessoryDetailDisclosureButtonand UITableViewCellAccessoryDetailDisclosureButton?

+5
source share
3 answers

Apple HIG suggests using it UITableViewCellAccessoryDisclosureIndicatorto navigate hierarchical data and UITableViewCellAccessoryDetailDisclosureButtonto perform certain actions, which can lead to viewing the editing, which can change the data. However, most programmers seem to ignore this.

You can implement the delegate method tableView:didSelectRowAtIndexPath:as follows:

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

.

+6

. UITableViewCellAccessoryDetailDisclosureButton - , UITableViewCellAccessoryDisclosureIndicator - .

UITableViewCellAccessoryDisclosureIndicator UITableViewCellAccessoryDetailDisclosureButton, tableView: accessoryButtonTappedForRowWithIndexPath: UITableViewCellAccessoryDisclosureIndicator, .

+2

, .

UITableViewCellAccessoryDetailDisclosureButton, , , , , .

UITableViewCellAccessoryDisclosureIndicator, tappable .

If your behavior is something else, use a different mechanism.

0
source

All Articles