I have a view that contains labels, and have a button to change the values of the labels. Instead of changing the values one by one in the button, how can I reload the whole view to update the labels.
@IBOutlet weak var one: UILabel!
@IBOutlet weak var two: UILabel!
@IBOutlet weak var three: UILabel!
....
@IBOutlet weak var updateLabels: UIButton!{
//doing something to change the value of the labels
//then wanna reload the whole view
viewDidLoad()
}
I had called the viewDidLoad() method, but didn't work.