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
Post a Comment