를 사용하여 다음 단계를 AppDelegate에에서
: 어딘가에 당신의 클래스
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Put your API key here.
[GMSServices provideAPIKey:GOOGLE_PRJ_API_KEY];
return YES;
}
이 나타납니다 코드 다음 MapsController 사용하는 말 :
- (void)setupGoogleMap{
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:_currentLocation.coordinate.latitude longitude:_currentLocation.coordinate.longitude zoom:DEFAULT_ZOOM_LEVEL];
if (!_googleMapView) {
_googleMapView = [GMSMapView mapWithFrame:self.view.bounds camera:camera];
[self.view insertSubview:_googleMapView atIndex:0];
_googleMapView.settings.compassButton = YES;
_googleMapView.myLocationEnabled = YES;
[_googleMapView setDelegate:self];
}
_googleMapView.camera = camera;
}
하여 제공하는 API 키 또는 확인 함 재생성을 시도하거나 번들 식별자가
인 iOS 전용 키를 설정하십시오. 앱 번들 ID는 Google지도 대시 보드에 있습니까? –
예 이미 추가되었습니다. – nipa