Post not yet marked as solved
Post marked as unsolved with 2 replies, 1,377 views
Hi,On one of my apps, I have been adding some MKPointAnnotations to a map and showing a pin and showing some text as a title above the pin,Fairly basic code as per below.(Not full code of course, just to give an idea.)func addMarkerToMap() { let annotation = MKPointAnnotation() annotation.title = "My Title" annotation.coordinate = CLLocationCoordinate2D(latitude: sLatitude!, longitude: sLongitude!) myMap.addAnnotation(annotation)}func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? { if annotation is MKPointAnnotation { let pinAnnotationView = MKPinAnnotationView(annotation: annotation, reuseIdentifier: "myPin") pinAnnotationView.pinTintColor = .blue pinAnnotationView.isDraggable = false pinAnnotationView.canShowCallout = true pinAnnotationView.animatesDrop = true pinAnnotationView.isSelected = true return pinAnnotationView } return nil }}This has been working fine until IOS was updated to IOS 13.4.Now it will only ever show a title if it only contains 1 character.Any more than 1 character and all the pin title shows is 3 dots.Does anyone know if this is a IOS bug, or is there a way I can set the frame size of the MKPointannotation so that I can once again fit the full title in?Thanks for any advice.