How to avoid touch in certain regions of a custom view?

Go To StackoverFlow.com

1

In my custom View which I have added to my viewControllers's view, I need to handle touches but only in certain regions of it and not everywhere.

How do I go about it ?

2012-04-04 08:19
by Amogh Talpallikar


2

You can override pointInside:withEvent: to make the view ignore touches that aren't in the region you want.

2012-04-04 08:22
by Ian Henry
Understood !!! thanks - Amogh Talpallikar 2012-04-04 11:37
Ads