Creating a segue programmatically

I have a common UIViewController that all my UIViewsControllers extend to reuse some common operations.

I want to set up a segue on this “Common” UIViewController so that all the other UIViewControllers inherit.

I am trying to figure out how do I do that programmatically.

I guess that the question could also be how do I set a segue for all my UIViewControllers without going into the story board and do them by hand.

13 Answers
13

Leave a Comment