Instances of this class represent a view controller that provides the basic user interface (UI) and behavior for displaying and editing information about graphics in a popup. It is a container and manages a number of view controllers behind the scenes, each of which is designed for a specific purpose, such as editing an attribute, displaying media, managing attachments, etc. It manages transitions between these view controllers and displays the relevant one depending upon what the user intends to do.
Public Member Functions | |
(UIBarButtonItem *customActionButton) | - __attribute__ |
(void) | - clearAllPopups |
(id) | - initWithPopupInfo:graphic:usingNavigationControllerStack: |
(id) | - initWithPopups: |
(id) | - initWithPopups:usingNavigationControllerStack: |
(id) | - initWithWebMap:forFeature:usingNavigationControllerStack: |
(void) | - showAdditionalPopups: |
(void) | - startEditingCurrentPopup |
Properties | |
UIBarButtonItem * | actionButton |
UIView * | actionSheetContainerView |
AGSGeometry * | currentEditingGeometry |
AGSPopup * | currentPopup |
UIBarButtonItem * | defaultActionButton |
UIBarButtonItem * | defaultDoneButton |
id< AGSPopupsContainerDelegate > | delegate |
UIBarButtonItem * | doneButton |
AGSPopupsContainerEditingStyle | editingStyle |
BOOL | inEditingMode |
UIViewController * | modalPresenter |
AGSPopupsContainerPagingStyle | pagingStyle |
NSArray * | popups |
AGSPopupsContainerStyle | style |
UIColor * | styleColor |
- (UIBarButtonItem* customActionButton) __attribute__ | ((deprecated)) |
You can replace the button that appears on the right side of the Navigation Bar with a custom button through this property.
actionButton
instead. Reimplemented from <AGSPopupsContainer>.
- (void) clearAllPopups |
Clears all the popups currently being shown. This is useful if you want to reuse an existing popups container to display an entirely new set of popups. That way, the popups container doesn't have to reload from a NIB everytime it is shown.
Reimplemented from <AGSPopupsContainer>.
- (id) initWithPopupInfo: | (AGSPopupInfo *) | popupInfo | ||
graphic: | (AGSGraphic *) | graphic | ||
usingNavigationControllerStack: | (BOOL) | usingNavigationControllerStack | ||
Initializes an AGSPopupsContainerViewController with an AGSPopupInfo and an AGSGraphic. The feature must belong to the graphics collection of an AGSFeatureLayer.
popupInfo | representing the popup definition | |
graphic | for which to display the popup | |
usingNavigationControllerStack | A boolean indicating whether the navigation controller in the application should be updated when displaying popups |
- (id) initWithPopups: | (NSArray *) | popups |
Initializes an AGSPopupsContainerViewController.
popups | An array of AGSPopup objects representing the popups to be displayed |
- (id) initWithPopups: | (NSArray *) | popups | ||
usingNavigationControllerStack: | (BOOL) | usingNavigationControllerStack | ||
Initializes an AGSPopupsContainerViewController.
popups | An array of AGSPopup objects representing the popups to be displayed | |
usingNavigationControllerStack | A boolean indicating whether the navigation controller in the application should be updated when displaying popups |
- (id) initWithWebMap: | (AGSWebMap *) | webmap | ||
forFeature: | (AGSGraphic *) | feature | ||
usingNavigationControllerStack: | (BOOL) | usingNavigationControllerStack | ||
Initializes an AGSPopupsContainerViewController with an AGSWebMap and an AGSGraphic. The feature must belong to the graphics collection of an AGSFeatureLayer.
webmap | containing the popup definition | |
feature | for which to display the popup | |
usingNavigationControllerStack | A boolean indicating whether the navigation controller in the application should be updated when displaying popups |
- (void) showAdditionalPopups: | (NSArray *) | popupInfos |
Update the view controller to display additional popups. This is useful when the view controller is already displaying some popups, but you then want to display additional popups that were retrieved in the background, for example, as part of a query/identify operation.
Reimplemented from <AGSPopupsContainer>.
- (void) startEditingCurrentPopup |
Start the editing process for the currently shown popup.
Reimplemented from <AGSPopupsContainer>.
- (UIBarButtonItem*) actionButton [read, write, retain] |
You can replace the button that appears on the right side of the Navigation Bar with a custom button through this property.
Reimplemented from <AGSPopupsContainer>.
- (UIView*) actionSheetContainerView [read, write, assign] |
The UIView that will act as a container for any UIActionSheet.
Reimplemented from <AGSPopupsContainer>.
- (AGSGeometry*) currentEditingGeometry [read, retain] |
When in edit mode and geometry editing is allowed, this property returns a mutable geometry that you can edit and when editing is finished, it will be set on the current popup's graphic.
Reimplemented from <AGSPopupsContainer>.
- (AGSPopup*) currentPopup [read, retain] |
- (UIBarButtonItem*) defaultActionButton [read, retain] |
- (UIBarButtonItem*) defaultDoneButton [read, retain] |
- (id<AGSPopupsContainerDelegate>) delegate [read, write, assign] |
The delegate to be notified when a user interacts with the popups or edits graphics related to the popups. The delegate class must adopt the AGSPopupsContainerDelegate
protocol.
Reimplemented from <AGSPopupsContainer>.
- (UIBarButtonItem*) doneButton [read, write, retain] |
You can replace the button that appears on the left side of the Navigation Bar with a custom button through this property.
Reimplemented from <AGSPopupsContainer>.
- (AGSPopupsContainerEditingStyle) editingStyle [read, write, assign] |
- (BOOL) inEditingMode [read, assign] |
Indicates whether the view controller is in the process of editing a feature.
Reimplemented from <AGSPopupsContainer>.
- (UIViewController*) modalPresenter [read, write, retain] |
The UIViewController that should be used for presenting modal view controllers from within this AGSPopupsContainer. This is useful when using this view controller as a standalone object (for example, in a custom callout or a custom view) and when it's not part of a view controller hierarchy.
Reimplemented from <AGSPopupsContainer>.
- (AGSPopupsContainerPagingStyle) pagingStyle [read, write, assign] |
The style that is used for paging when multiple popups are being displayed.
- (NSArray*) popups [read, write, retain] |
- (AGSPopupsContainerStyle) style [read, write, assign] |
- (UIColor*) styleColor [read, write, retain] |
The UIColor that is used for the toolbars in the popup views when style
is set to AGSPopupsContainerStyleCustomColor
.
Reimplemented from <AGSPopupsContainer>.