Your Second Swift 4 & iOS 11 App - Part 34: | Ray Wenderlich

Delegates allow you to respond to events not just in controls but in other view controllers.

This is a companion discussion topic for the original entry at

This topic was automatically closed after 166 days. New replies are no longer allowed.

I have question, i don’t understand why in: AddItemViewController we call: navigationController?.popViewController(animated: true)

And then we call the pop again in the delegate methods. Shouldn’t we call it once? And i assume it should be in the delegate method?

@bdmoakley Can you please help with this when you get a chance? Thank you - much appreciated! :]