I dragged a ViewController onto my storyboard, segued to it with a popover segue, and setup the size and style in the presentingVC's prepareForSegue. My question is, if my popover has several buttons, where should their code be executed?
- For example, should I use a delegation pattern where, in the prepareForSegue, I pass the delegation reference as self? Then delegate backward?
- Or, should I create a new viewController for the popover, then put the code to be run in there?
- I also read this tutorial and someone said...
" And you get hold of the the content controller by using the popoverPresentationController.presentedViewController method in the UIPopoverPresentationController
What would be ideal for me, since the code I want will change some presentingVC variables, would be delegate back to the presenting VC.