ios - How to make a switch from one view to the same view? -


i'm creating questionnaire app ios in swift. need 1 view questions. how make 1 generic view , make i'm switching new view swipe when replacing of data on view?

alright, think know you're attempting do. possibly this. assuming have custom uiviewcontroller subclass textfields , labels on it; i've named questionaireviewcontroller.

let nextvc = questionaireviewcontroller() self.navigationcontroller?.pushviewcontroller(nextvc, animated: true) 

additionally, you'll want set unwind segues each time create new vc, if needed navigation controller can segue back.


Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -