Operating system requirements: iOS 5.0 or later.
Mobile device: iPad.
This example displays creating a controller for saving report in favorites.
Executing the example requires to place the following code in the body of the executeExample method of the ViewController class (see the Displaying of Express Report section):
// Get express report data view controller MAExpressAnalysisReportViewController *reportViewContr = (MAExpressAnalysisReportViewController *)m_controller; // Create a controller for saving report to favorites MADataReportFavoriteSaveViewController *favoriteSaveViewContr = [[[MADataReportFavoriteSaveViewController alloc] initWithDelegate: reportViewContr] autorelease]; // Display controller view in a popup window UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:favoriteSaveViewContr]; [popover presentPopoverFromRect:CGRectMake(0, 0, 300, 150) inView:[self view] permittedArrowDirections:NULL animated:NO];
After executing the example a popup window containing the controller for saving report to favorites is displayed:
See also: