Closing an UIPopoverController from the subview, wether it is a UINavigationController any other type of controller can be a little bit of an hassle. I had this problem today and figured it out quickly. I thought of sharing this solution here.
The solution itself is quite simple. The ViewController creating the UIPopoverController is being reused to close it as well. This means that the UIPopoverController needs to be an accessible variable throughout that class.
So, how do we close it? well, this is how: