0

iOS 6.1 では、Google マップ バージョン 1.3.1 が統合されました。場所をナビゲートすると、エラーが発生しました。「受信メモリ警告」。シミュレーターでは機能しますが、デバイスでは機能しません。

私のコード:

             GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:[show_lat         doubleValue] longitude:[show_long doubleValue] zoom:15];

            [mapView_ animateToCameraPosition:camera];


            mapView_ = [GMSMapView mapWithFrame:self.mapview.bounds camera:camera];
            mapView_.myLocationEnabled = YES;
            mapView_.settings.compassButton = YES;
            mapView_.settings.myLocationButton = YES;
            [self.mapview addSubview:mapView_];


            // Creates a marker in the center of the map.
            GMSMarker *marker = [[GMSMarker alloc] init];
            marker.position = CLLocationCoordinate2DMake([show_lat doubleValue],[show_long doubleValue]);
            marker.title = selected_branchName;
            marker.snippet = selected_city;
            marker.map = mapView_;

誰でも私を助けてください知っていますか...

4

1 に答える 1