Remove the viewcontroller in Navigationcontroller iOS swift

 Solution:

I want to remove one viewcontroller in my navigationcontroller stack because of after navigation i don't want the viewcontroller to be came while back button pressed.

So you can easily get that by the following

                    self.navigationController?.removeViewController(MyVC.self)

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift