Answer the question
In order to leave comments, you need to log in
How can I make it so that the variable is not updated when the screen is updated?
The bottom line is this: there are two Table View and two labels, when you click on the TableViewCell of the first TableView, the text of this cell in the first label should be displayed, and when you click on the TableViewCell of the second TableView, the text of this cell in the second label should be displayed. I use
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
label.text = textOfLabal
label2.text = textOfLabal2
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question