Managing a system of UIPopoverControllers
===

Good afternoon all,

I am creating functionality to edit a document much like the features available in the Invoice2Go app for iPad. 

I have decided to use a system of UIPopoverControllers with delegates to notify a central controlling UIViewController. I have split the document that I want to edit into many different UIViews. On touching the UIView I want to present a UIPopoverController with the editable fields contained within. 

At present I have the following setup:


DocumentViewController - this is the central UIViewController
SectionView# - a UIView for each section and added to the DocumentViewController.View
SectionView#PopoverController - a UIViewController for the PopoverController content

When sectionView# is selected a delegate object sends a message back to DocumentViewController to create the applicable SectionView#PopoverController and pass into the UIPopoverController instance.

From a software architecture point of view what would you propose be the best solution. 

I have created a protocol with the following method that is called when touchesEnded is received:

    - (void)beginEditing:(id)sender;

The DocumentViewController implements this method but I am stuck as to what to do with the code once here

Hope you can help...
