I have created a custom annotation in swift and created an action handler for when somebody touches that type of annotation.
The problem is that I want the text to visible at all times without me having to click the annotation.
I want to do this because I want the user to see all the users on the map[see where each one is at every moment] and click on one of the annotations if he wants to open a chat view with that one.
Is there any way to do this?
Update 1:after Following Anna's advice I went ahead and added a label to the annotation subview. now I want to hide the label or do something with it when I click on the annotation
for things in view.subviews{
if things.isKindOfClass(UILabel){
var label = UILabel()
label.text = " "
things.textLabel = label
}
}
I get a label at the last attribution.How can I avoid that?