What I want to do is click the label and it will lead to another page. Now I am making iOS application using Xcode. I found the information about this in internet but couldn't find related information.
How can I do this?
What I want to do is click the label and it will lead to another page. Now I am making iOS application using Xcode. I found the information about this in internet but couldn't find related information.
How can I do this?
You can add a tap gesture like this:
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(didTapOnLabel(gesure:)))
YOUR_Label.addGestureRecognizer(tapGesture)
func didTapOnLabel(gesure:UITapGestureRecognizer){
//handle your action here
}