开发者

Distinguish between click on AccessoryView and Cell Content and will Apple allow it?(iPhone)

开发者 https://www.devze.com 2022-12-12 07:05 出处:网络
I was wondering if there is a delegate method to implement that let\'s me distinguish between a tap on the content view of the cell and the disclosure symbol to the right.

I was wondering if there is a delegate method to implement that let's me distinguish between a tap on the content view of the cell and the disclosure symbol to the right. I would like to send the user to two different view depending on where on the cell they tap.

I think the event is normally caught by testing if the tableView is:

(self.editing)

I can only remember having seen this functionality during editing in the Alarm Clock and Address Book app. Does anyone know if it is even "allowed" by Apple or is it considered "bad" user interfa开发者_运维知识库ce design? Anyone know of other Apple apps that implements this approach?

Hope someone can shed a little light on this issue:) Thank you


Implement the Delegate method to handle taps on accessory button

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

And you know how to handle cell selection..

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号