A
A
alex_6432020-06-05 20:20:39
iOS
alex_643, 2020-06-05 20:20:39

Passing data back and forth between VCs?

Could you help with the transfer of data back. There is a Navigation Controller, I want that when a button is pressed on 2 VC, a transition is made, and text is displayed on 1. I read the article ( https://swiftbook.ru/post/tutorials/pass-data/#pas... but I didn't understand why the button on the first VC is needed. In short. Need help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Vorobei, 2020-06-06
@ivanvorobei

The button is needed to initiate the transition to the next. controller. To pass data between two controllers you need to split the task into passing it to the new controller, and displaying the new data in the second controller. Which of the two subtasks is the problem?
I see you are a complete beginner, here it is not customary to write questions in the spirit of "I don't know what the problem is, and in general, do it, I'll figure it out." State the problem , show what you did and what behavior you expected.
The community is friendly and helpful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question