为什么我必须缩小才能在 iOS、objective c 的地图视图中看到注释
why should I have to zoom out to see the annotation in mapview in iOS, objective c
我正在实施地图视图特定位置,经度和下方 latitude.like。
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 中工作正常我用设备测试,我必须缩小才能看到地图(图钉显示为正方形 table,不显示地图)
它将发生在 IOS8.3 和更高版本的 sim 卡和设备上(可能是一个错误)。系统 Maps App 运行(它也显示空网格)一分钟,直到它下载地图。在 MKMapView 开始正常渲染之后。
我正在实施地图视图特定位置,经度和下方 latitude.like。
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 中工作正常我用设备测试,我必须缩小才能看到地图(图钉显示为正方形 table,不显示地图)
它将发生在 IOS8.3 和更高版本的 sim 卡和设备上(可能是一个错误)。系统 Maps App 运行(它也显示空网格)一分钟,直到它下载地图。在 MKMapView 开始正常渲染之后。