I am trying to capture a touch through a UILabel
, but am having trouble. Here is my scenario.
I have a UIButton
as a subview of a UIScrollView
. I also have a UILabel
as a subview of the same UIScrollView
. The frame of the UILabel overlaps that of the UIButton, and thus (as far as I can tell) occludes the UIButton
from being pressed.
I am trying to create a scenario where the user can touch through the UILabel
(it has a transparent background, so the button is completely visible - less the labels text).
Is this possible?
I know touches behave differently when there is a UIScrollView
involved. Is that impeding the touches?
Anyone have any advice? Cheers, Brett
myLabel.userInteractionEnabled = NO;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With