Open / Close screen in navigation by coding
Open:
Close:
let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let newViewController = storyBoard.instantiateViewController(withIdentifier: "ZommPhotoViewController") as! ZommPhotoViewController
newViewController.image = image
self.navigationController?.pushViewController(newViewController, animated: true)
self.navigationController?.popViewController(animated: true)
Comments
Post a Comment