ios - How to create an unwind segue programatically -


this question has answer here:

i have force user go home screen when app becomes foreground background. in case i'll have create unwind segue in each , every view controller. instead i'm trying is, create parent class view controllers , perform segue. doing can avoid adding unwind segues every view controller storyboard.

i need way create unwind segue code instead of creating storyboard.

thanks in advance.

since, need go home screen, suppose should root controller of uinavigationcontroller.

for use:

//this pop navigation controller root controller

navigationcontroller?.poptorootviewcontrolleranimated(true) 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo