A
A
Archakov Dennis2015-08-09 21:07:09
Objective-C
Archakov Dennis, 2015-08-09 21:07:09

How to change Label from one controller to another?

I just started learning Objectiv-C , I like it better than Swift .
I will briefly explain the essence of the program:
There is a TableView with 5 elements, when an element is selected, an index is obtained, and then I refer to an element of a multidimensional array using this index. Further, from this multidimensional array, an array is taken with the parameters that must be assigned to the UILabel on another controller.
949665d9032b40b098ad7dd29423c27f.png
Question: How to access a label from one controller to another?
PS: If it's not difficult, explain in more detail or suggest a solution :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2015-08-09
@onepavel

The first controller must have a link to the second controller. When an array is selected from a multidimensional array in the TableView delegate, pass the resulting array to the second controller through the method you created (or fumble the multidimensional array between two controllers, and pass only the index to the second controller), and in this method you access the UILabel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question