S
S
shah120072017-02-16 18:09:25
iOS
shah12007, 2017-02-16 18:09:25

Swift. Xcode. How to enlarge annotation?

Good afternoon! Please tell me how to increase the annotation size of an object on the map using Mapkit.
Objects on the map are defined by a class with characteristics: coordinates, type, heading, subheading. In the annotation, apart from the address, nothing fit. To extend the annotation, I added a label:
let detailLabel = UILabel()
detailLabel.numberOfLines = 0
detailLabel.text = annotation.subtitle
view.detailCalloutAccessoryView = detailLabel
But after that, all the annotations on the map got messed up. Please tell me, or any other method or how to fix this one?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question