Monday, 15 September 2014

Use UIScreenEdgePanGestureRecognizer without scrolling google map for iOS -



Use UIScreenEdgePanGestureRecognizer without scrolling google map for iOS -

i working google maps ios sdk 1.8.1 , want utilize uiscreenedgepangesturerecognizer left on map. have gesture working want disable scrolling on map when using uiscreenedgepangesturerecognizer. tried disable scroll in action method of gesture with

mymapview.settings.scrollgestures = no;

and in

- (bool)gesturerecognizer:(uigesturerecognizer *)gesturerecognizer shouldreceivetouch:(uitouch *)touch

but didn't work believe map 1 receiving first event, there way observe first uiscreenedgepangesturerecognizer before google map gestures? i'll appreciate suggestion.

if implement on delegate:

- (bool)gesturerecognizer:(uigesturerecognizer *)gesturerecognizer shouldrecognizesimultaneouslywithgesturerecognizer:(uigesturerecognizer *)othergesturerecognizer { homecoming no; }

you'll able disable multi-gesture recognition.

ios google-maps uigesturerecognizer google-maps-sdk-ios

No comments:

Post a Comment