У меня есть карта, и я хочу, чтобы установить местоположение пользователя (синяя точка), когда я открываю it.i пытался много вещей, и не work.please помочь мнеместо на MAPview
MKCoordinateRegion region;
region.center.latitude=BG_LATITUDE;
region.center.longitude=BG_LONGITUDE;
region.span.latitudeDelta=SPAN_VALUE;
region.span.longitudeDelta=SPAN_VALUE;
[self.mapView setRegion:region animated:YES];
NSMutableArray *annotations =[[NSMutableArray alloc]init];
//coordinate (for the annotation)
CLLocationCoordinate2D location;
mapAnnotation *ann;
location.latitude=MaB_LATITUDE;
location.longitude=MaB_LONGITUDE;
//annotation
ann = [[mapAnnotation alloc]init];
[ann setCoordinate:location];
[email protected]"Main Branch";
[annotations addObject:ann];
я сделал, что, прежде чем просить, но это не work.any другие идеи ?? –