Operating system requirements: iOS 5.0 or later.
Mobile device: iPad.
This example implements displaying of regular report action view.
Executing the example requires to place the following code in the body of the executeExample method of the ViewController class (see the Displaying of Regular Report section):
// Get view displaying regular report MAProceduralReportViewController *proceduralReportController = (MAProceduralReportViewController *)m_controller; // Get array of regular report views NSArray *dataViewControllers = [proceduralReportController dataViewControllers]; // Parse regular report views in cycle for( UIViewController *controller in dataViewControllers) { // Check if the current view is a regular report sheet viewer if([controller isMemberOfClass:[MAProceduralReportDataViewController class]]) { // Get sheet viewer view MAProceduralReportDataViewController *dataViewController =(MAProceduralReportDataViewController *)controller; // Create a regular report action view ProceduralActionMenuViewController *actionMenuViewController = [[ProceduralActionMenuViewController alloc] initWithDelegate:proceduralReportController]; // Display created view in popup window [proceduralReportController showInPopover:actionMenuViewController fromView:[self view] inRect:CGRectMake(50.0, 50.0, 300.0, 250.0) permittedArrowDirections:NULL]; // Set report viewer delegate in created view [actionMenuViewController setProceduralDelegate:dataViewController]; // Go to the specified regular report document page [[actionMenuViewController proceduralDelegate] jumpToPage:2]; } }
After executing the example the mobile device screen displays the regular report with a popup window containing regular report action view. The report viewer delegate is also set for the regular report action view, the viewer is used to go to the specified report page:
See also: