Xcode 6.1에서 Google지도를 표시하는 데 문제가 있습니다.Google지도 SDK가 UIView에 제대로 표시되지 않습니까?
내 UIView 섹션에지도가 표시되도록 관리했지만 특정 좌표 대신 세계지도를 표시합니다. 여기
이 문제입니다 :.H :
@interface MapViewController : UIViewController
@property (strong, nonatomic) IBOutlet UIView *googleMapView;
- (IBAction)mapToMain:(UIButton *)sender;
@end
하는 .m :
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude: 32.915134
longitude: -117.140269 zoom: 17];
GMSMapView *mapView = [GMSMapView mapWithFrame:self.googleMapView.bounds
camera:camera];
mapView.myLocationEnabled = YES;
self.googleMapView = mapView;
GMSMarker *marker = [ [GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(32.915134, -117.140269);
marker.title = @"Tet Festival 2015";
marker.snippet = @"VAYA Tet";
marker.map = mapView;
}
내가 여기에 몇 가지 제안을했다,하지만 작동하지 않았다 :
개 Cannot put a google maps GMSMapView in a subview of main main view?
Using the Google Maps SDK in views other than the main view
어떤 제안?
나는 기본적으로 맵 마커의 위치를 표시하기 위해 노력하고 있지만, 대신에 세계지도를 표시합니다. – Pangu
다른 사람도 도울 수 있습니까? 나는 SO를 찾았지만 여전히 작동하지 않습니다. ( – Pangu