In my app you type an integer
in a textField
in viewcontroller1
. If the integer
is greater than 100 a label will pop up on screen and when you click on it, you will go to viewcontroller2
. The same repeats from viewcontroller2
and viewcontroller3
.
However I want the integer in viewcontroller1
to be displayed in another label
in viewcontroller3
, which I then learned to use prepareforsegue
to be able to do so.
Now my problem is, my prepareforsegue
only works if I use a button
, its seems like I can't connect my label you click to go to the viewcontroller
as a segue
connection? (is this possible?
If not, what can I do to keep my label but work as my button
is now, so my prepareforsegue
is working correctly.