0

I have a baseVC and a navigation controller.

The navigation controller has a bar button item, which i gave a segue to go back to the BaseVC.

Unfortunately when I press the done button to return to the BaseVC (the initial state from which I went to the navigation controller), the baseVC ends up having the top look as if I went to the extra options navigationVC (a VC which shows more info on content in cells in the main navigation controller)

How can I prevent this?

This is done on the interface builder.

Update:

I have found that my issue is related to this one...

1 Answers1

1

for back to root viewController use

navigationController?.popToRootViewController(animated: true)

for back to previous viewController use

navigationController?.popViewController(animated: true)
Masoud Roosta
  • 455
  • 9
  • 19
  • The baseVC is not embedded in the navigation controller so this did not work. –  Jul 13 '19 at 18:47