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)