Users Pricing

forum

Home Forums Detecting events on tap of UIButton in iOS – MindStick

Detecting events on tap of UIButton in iOS

Anonymous User 1960 29 Nov 2015

In my iPhone application on which I am working I want to handle an event occurs when UIButton touch is ended.
I know that UIControl has some events implementing touches (UIControlEventTouchDown, UIControlEventTouchCancel, etc.).
But my problem is I am unable to catch any of them except UIControlEventTouchDown and UIControlEventTouchUpInside.

My button is a subview of another UIView. That UIView has userInteractionEnabled property set to YES.
I am unable to understand that what's wrong I am doing?


1 Answers

Tarun Kumar 30 Nov 2015 Accepted Answer
Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md