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

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -