Skip to content

Instantly share code, notes, and snippets.

@jackyshan
Created May 8, 2017 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jackyshan/7a196ca38c4e589e765351e53c460fa8 to your computer and use it in GitHub Desktop.
Save jackyshan/7a196ca38c4e589e765351e53c460fa8 to your computer and use it in GitHub Desktop.
navigationcontroller页面翻转
override func backBtnAction() {
UIView.transition(with: (self.navigationController?.view)!, duration: 0.7, options: .transitionFlipFromLeft, animations: {
self.navigationController?.popViewController(animated: false)
}, completion: nil)
}
let vc = BusLineMapViewController()
UIView.transition(with: (self.navigationController?.view)!, duration: 0.7, options: .transitionFlipFromRight, animations: {
self.navigationController?.pushViewController(vc, animated: false)
}, completion: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment