iOS Guides | Samples

MonoTouch.UIKit.UIPopoverController Class

Manages a popover on the screen.

See Also: UIPopoverController


[MonoTouch.Foundation.Register("UIPopoverController", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 3, 2, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UIPopoverController : NSObject, IUIAppearanceContainer, IDisposable

Related content


Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions:

The members of MonoTouch.UIKit.UIPopoverController are listed below.

See Also: NSObject

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
This constructor is used to create a popover controller that will be used to display the contents of viewController.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

BackgroundColorUIColor. The color of the background.
ClassHandleIntPtr. The handle for this class.
ContentViewControllerUIViewController. A view controller that is responsible for the content of the popover.
DelegateUIPopoverControllerDelegate. An instance of the MonoTouch.UIKit.UIPopoverControllerDelegate model class which acts as the class delegate.
PassthroughViewsUIView[]. This is a list of views that may handle taps outside of the popover controller.
PopoverArrowDirectionUIPopoverArrowDirection. This propery holds the direction of the popover's arrow.
PopoverBackgroundViewTypeType. This is the type that is used to display the background of the popover.
PopoverContentSizeSizeF. The size of the view that is used by the popover.
PopoverLayoutMarginsUIEdgeInsets. The margins around the portion of the screen where the popover will be displayed.
PopoverVisibleBoolean. If true, then the popover is present and visible.
ShouldDismissUIPopoverControllerCondition. Delegate invoked by the object to get a value.
WeakDelegateNSObject. An object that can respond to the delegate protocol for this type

Public Methods

This method will dismiss the popover programatically.
PresentFromBarButtonItem(UIBarButtonItem, UIPopoverArrowDirection, Boolean)
Shows the popover, anchoring it to the provided item.
PresentFromRect(RectangleF, UIView, UIPopoverArrowDirection, Boolean)
If true, then the popover will be animated as it is displayed.
SetContentViewController(UIViewController, Boolean)
Changes the view controller that will display the contents of the popover.
SetPopoverContentSize(SizeF, Boolean)
This method will change the size of the content of a popover, optionally animating the change in size.

Protected Methods

Releases the resources used by the UIPopoverController object.

Public Events

DidDismissEvent raised by the object.
WillRepositionEvent raised by the object.