Reputation: 81
I have a problem with implementing a button which should redirect my current view to another view when tapping on it. I have a central view and I already implement the gestures on top, left and right to move to others views.
But on this central view I want to add a button that allows me to redirect towards my right screen without using gesture from right to left with my finger.
I added an IBOutlet action for this button, but I do not know what method to implement for switching back to my right screen (not the top or left screen).
If anyone can help me thank you very much!
Upvotes: 0
Views: 460
Reputation: 4795
If you create a segue in Interface Builder and give it an identifier. You can then perform this segue (what you call "a transition") by calling
performSegue(withIdentifier: <String>, sender: self)
Of course you will need to replace <String>
with your segue's identifier
Upvotes: 0