i download Google Maps SDK for iOS along with api key
i import all frameworks along with GoogleMaps.framework and GoogleMaps.bundle. in my view controller i write.
static CLLocationCoordinate2D kPanoramaNear = {-33.874437, 151.207459};
- (void)loadView
{
CGRect applicationFrame = [[UIScreen mainScreen] bounds];
panoView_ = [[GMSPanoramaView alloc] initWithFrame:CGRectZero];
panoView_ = [GMSPanoramaView panoramaWithFrame:applicationFrame nearCoordinate:kPanoramaNear];
panoView_.backgroundColor = [UIColor grayColor];
panoView_.delegate = self;
panoView_.navigationLinksHidden = YES;
panoView_.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
self.view = panoView_;
[panoView_ moveNearCoordinate:CLLocationCoordinate2DMake(-33.732, 150.312)];
}
but my program crashed
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSData gtm_dataByInflatingData:]: unrecognized selector sent to class 0xe79238'
Unrecognized selector crashes with the maps SDK are usually caused by missing the -ObjC
linker flag: