iPhone UIControl and Subview

Posted by Jack Thompson on Stack Overflow See other posts from Stack Overflow or by Jack Thompson
Published on 2010-05-06T05:34:23Z Indexed on 2010/05/06 5:38 UTC
Read the original article Hit count: 603

Filed under:
|
|

I currently have a UIControl, which has a number of subviews (image, label).

Unfortunately when I use addTarget etc. It doesn't detect touches on the subviews.

  [myCustomView addTarget:self action:@selector(touchedView:)
             forControlEvents:UIControlEventTouchUpInside];

Is it possible for the UIControl to detect touches on subviews or should i be approaching it differently.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uicontrol