I am working in xcode 7.2 trying to make a project. So, I have two viewcontrolers: In the first I have 5 buttons. In the second I have a label and a segmented control.
So what I wanted to do is, to change the label and the segmented control title (title of the buttons) according to the button I press in the First VIewController.
For example If I press button A, in the secondview controller the label will say "You pressed button A" and the 3 Buttons of the segmented control should say "A","B","C". But If I press button B, in the secondview controller the label will say "You pressed button B" and the 3 Buttons of the segmented control should say "D","E","F".
Can anyone help me?