D
D
danilazharikov2019-05-04 16:00:27
Apple Xcode
danilazharikov, 2019-05-04 16:00:27

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
        
 
    }

but when transferring data to the second label, the value in the first one is lost (I transfer the data in a standard way via segways)
I hope you understand me, tell me what needs to be done so that the data remains in the labels and does not disappear, if there are any questions on the assignment, I will immediately answer !

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