I'm currently designing a small application in which I have: - 1 menu (graphic buttons) - 1 content (basically a view) to display as a popover for each buttons
The user touch an UIButton, a content designed with Interface Builder (and driven by its own view controller) is shown into an UIPopoverController. The user switches some UISwitch, slides some UISliders, then dismiss the UIPopoverController by clicking outside (or on the close UIButton of the content of the considered UIPopoverController)
If the user touches the same button, of course, the UIPopoverController appears, with the previous values freshly modified
Question 1: Where to store data (at runtime I mean) ? Because, each nicely prepared content UI has its own view controller, the more natural way could be to put them there. BUT dismissing the UIPopoverController dismisses data too...
Question 2: How can I have my UIPopoverController pulling the freshest data (from the previous user or logic changes) ?
Any leads about best practices would be appreciated