P
P
Petrushka2015-03-20 01:26:18
Objective-C
Petrushka, 2015-03-20 01:26:18

UINavigationController?

Good day, I started to study UINavigationController in the builder!
Tell me, did I understand correctly that all controls are connected to ONE class, so I can’t set outlets in 1 class for elements in different controllers?
If so, so how do you pass parameters in between?
Let's say in 1 controller I wrote something in the text field, and on the other controller I display it on the label.
And does this mean that even small projects have so many different controllers with different classes?
Let's say 30 controllers with 30 classes is this the norm?
PS I apologize for literacy)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2015-03-20
@petruska

Read about the pattern, Singleton, this is a class that always exists, stores data and is available in all other classes. Through it it is convenient to organize the transfer of data between classes.

I
Igor Grushevskiy, 2015-03-31
@iGrushevskiy

You can also pass data between controllers using the prepareForSegue method .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question