Last active
July 15, 2016 15:28
-
-
Save giulio92/1cc878386d6a6a2c3bca70ca78136e1a to your computer and use it in GitHub Desktop.
Revisions
-
giulio92 revised this gist
Jul 15, 2016 . No changes.There are no files selected for viewing
-
giulio92 revised this gist
Jul 1, 2016 . No changes.There are no files selected for viewing
-
giulio92 revised this gist
Jul 1, 2016 . No changes.There are no files selected for viewing
-
giulio92 revised this gist
Jul 1, 2016 . No changes.There are no files selected for viewing
-
giulio92 revised this gist
Jul 1, 2016 . No changes.There are no files selected for viewing
-
giulio92 revised this gist
Jul 1, 2016 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,4 +4,4 @@ - (void)setDoubleTapZoomEnabled:(BOOL)enabled; @end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,4 +19,4 @@ - (void)setDoubleTapZoomEnabled:(BOOL)enabled { } } @end -
giulio92 revised this gist
Jul 1, 2016 . No changes.There are no files selected for viewing
-
giulio92 revised this gist
Jul 1, 2016 . No changes.There are no files selected for viewing
-
giulio92 created this gist
Jul 1, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #import <GoogleMaps/GoogleMaps.h> @interface GMSMapView (DisableDoubleTapZoom) - (void)setDoubleTapZoomEnabled:(BOOL)enabled; @end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ #import "GMSMapView+DisableDoubleTapZoom.h" @implementation GMSMapView (DisableDoubleTapZoom) - (void)setDoubleTapZoomEnabled:(BOOL)enabled { for (id view in [self subviews]) { if ([view isKindOfClass:NSClassFromString(@"GMSVectorMapView")] ) { for (UITapGestureRecognizer *rec in [view gestureRecognizers]) { NSRange range1 = [[rec description] rangeOfString:@"action=handleZoomTapGesture:"]; NSRange range2 = [[rec description] rangeOfString:@"action=handleSingleTapGesture:"]; if (range1.location && range2.location && range1.location < range2.location) { [rec setEnabled:enabled]; break; } } } } } @end