Demonstrates how to use a PopOver control iPad devices to present temporary information.
Popovers are used to present temporary information in a non-modal manner. The popover remains visible until the user taps outside of the popover window, or it is explicitly dismissed. The main
index.xml view presents two buttons, "Popover" and "Popover with content view" that call the view-controller's
openPopoverWithContentView(), respectively, when clicked.
popover_with_window.xml views each declare a
<Popover> element that, in turn, contains a
<ContentView> element. The
<ContentView> element contains the actual content that is displayed by the popup.
When a button on the main view is clicked, the main view-controller gets a reference to a popover XML view, and calls its show() method, passing it a PopoverParams object whose
view property that specifies the view to which the popover should be anchored.