0
我正在实现具有经度和纬度的地图视图特定位置,如下所示。为什么我必须缩小以查看iOS中mapview的注释,目标c
self.hotelmapView.showsUserLocation = YES;
self.hotelmapView.showsBuildings = YES;
locationManager = [CLLocationManager new];
if ([locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) {
[locationManager requestWhenInUseAuthorization];
}
//[locationManager startUpdatingLocation]; --> no need to add this for real devices.else should add this.
MKPointAnnotation *annotationPint = [MKPointAnnotation new];
annotationPint.title = @"anuradh hotel name";
annotationPint.coordinate = CLLocationCoordinate2DMake(51.585300, -0.1257480);
notationarray = [NSMutableArray new];
[notationarray addObject:annotationPint];
注:该作品在simulator.when我与设备测试很好,我不得不缩小在地图上看到(引脚显示与方桌,不显示地图)
我保持足够的时间,但没有显示地图。任何解决方案? –
我的工作时间也面临同样的问题,我改变了地图类型作为标准,然后它显示在iphone 5家庭ony –
感谢您的快速答复。如果你了解任何解决方案,请足够的亲切,使我知道,他也会帮助别人。 –