Organizational Research By

Surprising Reserch Topic

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.

- (void)viewDidLoad
{
    [super viewDidLoad];

    _whisperDetailView.hidden = YES;

    [_whisperDetailView initlize];
    _whisperDetailView.viewController = self;
}



- (BOOL)mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker
{

    _detailView.whisper = marker.userData;
    _detailView.hidden = NO;

    return YES;
}


Storyboard snapshot:

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.
    
asked Sep 7, 2015 by rajesh
0 votes
12 views



Related Hot Questions



Government Jobs Opening


...