ios - UIPanGestureRecognizer at view with UIScrollView -


i have view uipangesturerecognizer.

uipangesturerecognizer *recognizer = [[uipangesturerecognizer alloc]                                           initwithtarget:self action:@selector(handlepan:)];     [recognizer setmaximumnumberoftouches:1];     [recognizer setdelegate:self];  [self.view addgesturerecognizer: recognizer];  ======= -(void) handlepan:(uipangesturerecognizer*)gesturerecognizer {   move subview of self.view } 

subview have scroll view inside. how capture gesture event -handlepan: when scroll view @ end of horizontal scrolling?

enter image description here

you can use following function:

- (bool)gesturerecognizer:(uigesturerecognizer *)gesturerecognizer shouldrecognizesimultaneouslywithgesturerecognizer:(uigesturerecognizer *)othergesturerecognizer 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -