Working with Regular Report Document Selection Controller

Operating system requirements: iOS 5.0 or later.

Mobile device: iPad.

Description

This example displays a view of regular report document selection controller on the mobile device screen.

Source Code

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 regular report controller
MAProceduralReportDataViewController<MADataViewControllerProtocol> *contr = (MAProceduralReportDataViewController<MADataViewControllerProtocol> *)[(MAProceduralReportViewController *)m_controller activeDataViewController];
// Get regular report document selection controller
DocumentSelectorViewController *documentSelector = [DocumentSelectorViewController new];
// Set object containing report working methods
[documentSelector setDelegate: contr];
// Remove all window subviews
NSArray *subviews = [self.view subviews];
for(UIView *subView in subviews) {
    [subView removeFromSuperview];
}
// Display regular report document selection controller
[[self view] addSubview:[documentSelector view]];

After executing the example the mobile device screen displays view of the regular report document selection controller:

See also:

Example of Component Use