ios - How to set frame for TapGesture Recognizer -


i have imageview , want tap on 1 side of imageview. possible set frame gesture? can solution?

use uigesturerecognizerdelegate, think can idea on how compare:

-(bool)gesturerecognizer:(uigesturerecognizer *)gesturerecognizer shouldreceivetouch:(uitouch *)touch {     if ([touch locationinview:yourview].x < somepoint.x) {         return false;     } else {         return true;     } } 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -