M
M
Maxim Globak2015-08-29 12:45:22
iOS
Maxim Globak, 2015-08-29 12:45:22

Order collection algorithm through all view controllers and data transfer through controllers. How to decide?

I wanted to ask how they make an application where an order is collected on 1-4 view controller in parts 4-5 controller registration or authorization and 6 controller shows the order in full and a button for payment.
The problem is that you cannot transfer data through one controller (by jumping), only drag it with you through all the controllers, but it seems to me that this is not correct. What do you do in such cases?
SWIFT language

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-08-29
@alexyat

Use singleton it is available everywhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question