1

I have 2 viewcontroller connecting with one segue and 2 Uilabels with the same name in the Viewcontroller _1 and Viewcontroller_2.

Name: Viewcontroller_1 Name: Viewcontroller_2 Name of Segue: g_over Name UILabels: g_over_result

I need find a easy/fast solution to generate a IBACTION/Void to transfer value of the UILABEL Viewcontroller_1 to UIlabel Viewcontroller_2 (when you open)

Thanks in advance, Edit.

rmaddy
  • 314,917
  • 42
  • 532
  • 579

1 Answers1

1

In ViewController_1 implement de prepareForSegue method. And inside that method you can pass any properties to ViewController_2

Check this other post: How to pass prepareForSegue: an object

Community
  • 1
  • 1
gabuh
  • 1,166
  • 8
  • 15