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
Post a Comment