user2262304 user2262304 - 1 year ago 47
Swift Question

How to do view transition like setting of system iOS?

I have a problem and I have no idea for that...

I want change interface like setting:settings.gif

I do not know even the key word to search it in the internet...

I used "interactive transition" and "gesture interactive" etc... but I can not find a right answer or demo or code...

Could you tell me how to code to change interface like settings of system iOS (a tutorial perhaps...)? Thank you very much !

PS : I created the two views by uiviewcontroller, not uinavigationController

Answer Source

I have fund my answer, I push it there, because I think this perhaps will help other beginners.

1) I embedded in a navigation bar for a view.

2) after 1), we can use

let secondViewController = self.storyboard!.instantiateViewControllerWithIdentifier("Your view") as! LoginViewController

        self.navigationController!.pushViewController(secondViewController, animated: true)

3) In the seconde view, there will have a backbitten automatic, and we can do like settings of system iOS