更新:迈克尔做对了。这是我的解决方案:-(void)connectNextCarOnMainThread:(id)annotation{[selfperformSelectorOnMainThread:@selector(connectNextCar:)withObject:annotationwaitUntilDone:YES];}-(void)connectNextCar:(id)annotation{Pin*pin=(Pin*)annotation;MKMapRectzoomRect=MKMapRectNull;MKMapPointannotationPoint=MKMapPoi
你好,我是ios的新手,使用来自服务器的纬度和经度在mapView上显示注释。我有一个ViewController,我在其中添加map并显示纬度和经度的位置。但我的问题是,每当我添加注释map时,每次我想要捏合mapView时,map都不会专注于它的注释,然后map将进入注释,我不知道为什么会这样?zoomLocation.latitude=latmpa.doubleValue;zoomLocation.longitude=logmpa.doubleValue;annotationPoint=[[MKPointAnnotationalloc]init];annotationPoint.
我将GoogleMapsApi用于map和标记。我通过设置启用标记的可访问性:mapView.accessibilityElementsHidden=false现在我在map上的所有自定义标记都具有辅助功能ID,例如:myappname.GMSPlaceMarker_somenumbers,例如myappname.GMSPlaceMarker_0x600000170200。我如何为所有图钉设置一个accessibilityIdentifier,例如map图钉?我已经试过了:marker.accessibilityLabel="Mappin"但它设置的是label值,而不是idmarke