Ask a Question
Advertise on boostr.in
viewcontroller not showing on google map didtapmarker method ios using -'ios,objective-c,google-maps,mapbox,google-maps-sdk-ios'
viewcontroller not showing on google map didtapmarker method ios ¬†using -'ios,objective-c,google-maps,mapbox,google-maps-sdk-ios'
I have a DetailViewController that is to be shown when user taps a marker on the mapView_. Initially I load the VC and set it hidden, and when the user would tap a marker, I would load values in the VC and show it. But it is not happening. Here's my code.
¬†¬†¬†¬†_whisperDetailView.hidden = YES;
¬†¬†¬†¬†_whisperDetailView.viewController = self;
- (BOOL)mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker
¬†¬†¬†¬†_detailView.whisper = marker.userData;
¬†¬†¬†¬†_detailView.hidden = NO;
Funny thing is I was using Mapbox before and was doing exact same thing in its didSelectAnnotation function and everything was working great. I recently had to switch to Google Map and now its not working.
Any help is appreciated. Thanks.
Sep 7, 2015
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please