UIButton not getting touch events inside a custom UITableViewCell
Posted
by
user210504
on Stack Overflow
See other posts from Stack Overflow
or by user210504
Published on 2010-12-24T19:31:26Z
Indexed on
2010/12/24
19:54 UTC
Read the original article
Hit count: 204
Hi!
I have designed a custom UItableView Cell in IB. This cell has a UIButton with an associated action. This button is not getting touch events, however the cell itself gets the events when called.
What could I be doing wrong here.
+--------------------------------+
| +----------+
| Cell | Button |
| +----------+
+--------------------------------+
When I tap on the Button tableviewcell gets the events. What could be wrong?
EDIT:
I just checked, that UIButton is also getting touch events, but so is the UITableViewCell. And at then end of it the action associated with UIButton is not getting called.
© Stack Overflow or respective owner