I have Masked UIView . View with blue dots. Green circle Area is masked off.I dont want to get touches on that area.i just want to get touches on visible layer of the View.
Asked
Active
Viewed 265 times
-1
-
2didn't you just ask the same question? http://stackoverflow.com/questions/15382667/mask-uiview-touch-detect – Kreiri Mar 13 '13 at 11:34
-
i did not find answer there – Jawad Ali Mar 13 '13 at 11:48
-
Then edit your first question. – Cyrille Mar 13 '13 at 11:56
2 Answers
1
Please select touch view in your touch method in place of self.view
May be it helps

Mahendra
- 425
- 2
- 9
0
Try creating a CGPath of the masked area & then check if the touch falls in ur masked area or not like this :
UIBezierPath *p = [UIBezierPath bezierPathWithCGPath:myCGPath];
BOOL isInPath = [p containsPoint:myCGPoint];
Hope this Helps !!!

arun.s
- 1,528
- 9
- 12
-
-
-
hmm ... i thought like you will be using path to mask the UIView. Let me see. – arun.s Mar 13 '13 at 12:03