Distinguish between clicking on AccessoryView and cellular content and allowing Apple? (Iphone)

I was wondering if there is a delegate method for implementation that allows me to distinguish between brief access to the cell contents view and the expansion symbol on the right. I would like to send the user two different views depending on where they are in the cell.

I think the event is usually captured by testing if tableView:

(self.editing)

I can only remember that I saw this functionality while editing in the Alarm Clock and Address Book application. Does anyone know if Apple is even “allowed” or considered a “bad” user interface design? Does anyone know of other Apple apps that implement this approach?

Hope someone can shed some light on this question :) Thank you

+3
source share
1 answer

Implement the Delegate method to handle the taps on the accessory button

- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath;

And you know how to handle cell selection.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
+16
source

Source: https://habr.com/ru/post/1723203/


All Articles