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 -

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

Why does a .NET 4.0 program produce a system.unauthorizedAccess error on a Windows Server 2012 machine with .NET 4.5 installed? -