I'm adding universal support to an iPad-only app. The first screen has a view containing a button for accessing app settings. Currently, in the iPad-only version, the settings appear in a UIPopoverView, and the UIPopoverController is a property of the app's view controller. In the iPhone version, it should use a modal popup instead, but the question is how to go about breaking up the view controller and view as it stands now.
@interface ClientSelectionController : UIViewController <UISearchBarDelegate, UIAlertViewDelegate>
{
@private
UIPopoverController *settingsPopover;
}
-(IBAction)btnSettingsTouchedDown:(id)sender;
@end
Should I make two different view classes for the controller, and make the UIPopoverController a child of the ClientSelectionView_iPad version, or should I instead make two different versions of the ClientSelectionController, one with the UIPopover, and the other with the modal popup?