I have a second view controller set to display in a UIPopoverController. I set up a delegate in the second view controller so when the user taps the button “Done”, it passes the data back to the first view controller. The data is a list of selections the user makes, its not a single selection.
i’m having trouble figuring out a way to pass that data back to the first view controller if the user tap’s outside of the pop over and is dismissed. right now, if the user taps out side of the pop over and it gets dismissed, i lose the data.
i suppose i could restrict them from dismissing the pop over by tapping outside of it, but i’d rather not.
any ideas?
When you present the
UIPopoverController, set itsdelegateto beselfAnd then add to the class this function
This function will be called when the popover is dismissed