Well, i try to explain my problem:
I sub-classed MyMapView from GMSMapView
@interface MyMapView : GMSMapView @end
Now i use MyMapView in MyViewController.m to show up a GMSMap and setup the delegate GMSMapViewDelegate.
@implementation MyViewController IBOutlet MyMapView *mapView; }
-(void)viewDidLoad { [super viewDidLoad]; GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.86 longitude:151.20 zoom:6]; mapView = [MyMapView mapWithFrame:CGRectZero camera:camera]; self.view = mapView; mapView.delegate = self; }
In MyViewController.h i declared the GMSMapViewDelegate
@interface MyViewController : UIViewController <GMSMapViewDelegate> @end
Now i want to use some GMSMapViewDelegate-Methods in MyViewController but all i tried went wrong. Can anyone explain me how to use the GMSMapViewDelegate-Methods in this scenario?
Thanks, grethi.