MonoTouch.UIKit.UIViewController Members

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

See Also: Inherited members from MonoTouch.UIKit.UIResponder

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
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.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.
A constructor used when creating a view controller using the information that is stored in the nib file.

Public Properties

AutomaticallyAdjustsScrollViewInsetsbool. Whether the UIViewController should automatically adjust its view insets in response to elements such as the status, navigation, and tab bars.
[read-only]
AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllersbool. Determines whether the containment events are automatically propagaged to nested view controllers.
[read-only]
BottomLayoutGuideIUILayoutSupport. The lower vertical extent of the onscreen content. Used by Auto Layout constraints. Read-only.
[read-only]
ChildViewControllersUIViewController[]. An array of MonoTouch.UIKit.UIViewControllers that are managed by this MonoTouch.UIKit.UIViewController.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
ContentSizeForViewInPopoverSystem.Drawing.SizeF. Default content size for popovers.
DefinesPresentationContextbool. Specifies whether this MonoTouch.UIKit.UIViewController’s UIViewController.View is shown when presenting another MonoTouch.UIKit.UIViewController.
[read-only]
DisablesAutomaticKeyboardDismissalbool. If true, input view will remain on-screen even when non-input control is tapped.
EdgesForExtendedLayoutUIRectEdge. Specifies how the UIViewController.ParentViewController should extend the layout of this MonoTouch.UIKit.UIViewController.
[read-only]
EditButtonItemUIBarButtonItem. A MonoTouch.UIKit.UIBarButtonItem that toggles between statees "Edit" and "Done."
Editingbool. true if the MonoTouch.UIKit.UIViewController allows the application user to edit the MonoTouch.UIKit.UIView contents.
ExtendedLayoutIncludesOpaqueBarsbool. Whether the extended layout includes opaque bars.
[read-only]
ExtensionContextMonoTouch.Foundation.NSExtensionContext. Gets the MonoTouch.Foundation.NSExtensionContext for this view controller.
HidesBottomBarWhenPushedbool. Specifies whether the toolbar should be visible when this MonoTouch.UIKit.UIViewController is pushed onto a MonoTouch.UIKit.UINavigationController.
[read-only]
InterfaceOrientationUIInterfaceOrientation. The current orientation of the interface.
[read-only]
IsBeingDismissedbool. true if the current MonoTouch.UIKit.UIViewController is in the process of being dismissed.
[read-only]
IsBeingPresentedbool. true if the current MonoTouch.UIKit.UIViewController is in the process of being presented.
[read-only]
IsMovingFromParentViewControllerbool. true if the current MonoTouch.UIKit.UIViewController is in the process of being removed from its parent MonoTouch.UIKit.UIViewController.
[read-only]
IsMovingToParentViewControllerbool. true if the current MonoTouch.UIKit.UIViewController is in the process of being added to a parent MonoTouch.UIKit.UIViewController.
[read-only]
IsViewLoadedbool. A bool indicating whether the UIViewController.View is loaded into memory.
[read-only]
LeftLayoutGuideUILayoutSupport. Indicates left-most extent for the specified onscreen content, with regard to your Auto Layout constraints.
ModalInPopoverbool. true if this MonoTouch.UIKit.UIViewController should be presented modally by a MonoTouch.UIKit.UIPopoverController.
ModalPresentationCapturesStatusBarAppearancebool. Whether the UIViewController, when presented modally but non-fullscreen, takes over control of the status bar.
ModalPresentationStyleUIModalPresentationStyle. The MonoTouch.UIKit.UIModalPresentationStyle to be used when presenting MonoTouch.UIKit.UIViewControllers.
ModalTransitionStyleUIModalTransitionStyle. The MonoTouch.UIKit.UIModalTransitionStyle to be used by UIViewController.PresentViewController.
[read-only]
ModalViewControllerUIViewController. Controller for the active presented view.
[read-only]
NavigationControllerUINavigationController. The nearest ancestor MonoTouch.UIKit.UINavigationController
[read-only]
NavigationItemUINavigationItem. A MonoTouch.UIKit.UINavigationItem that represents this MonoTouch.UIKit.UIViewController in its parent’s MonoTouch.UIKit.UINavigationController’s UINavigationController.UINavigationBar.
[read-only]
NibBundleMonoTouch.Foundation.NSBundle. The MonoTouch.Foundation.NSBundle from which this MonoTouch.UIKit.UIViewController was instantiated.
[read-only]
NibNamestring. The name of the nib file from which this MonoTouch.UIKit.UIViewController was instantiated, or null.
[read-only]
ParentViewControllerUIViewController. The MonoTouch.UIKit.UIViewController that contains this MonoTouch.UIKit.UIViewController.
[read-only]
PopoverPresentationControllerUIPopoverPresentationController. Gets the nearest ancestor in the view hierarchy that is a MonoTouch.UIKit.UIPopoverPresentationController or null if there is none.
PreferredContentSizeSystem.Drawing.SizeF. Gets the preferred size for the content of the container.
[read-only]
PreferredStatusBarUpdateAnimationUIStatusBarAnimation. The preferred animation style for hiding and showing the status bar.
[read-only]
PresentationControllerUIPresentationController. Gets the nearest ancestor in the view hierarchy that is a MonoTouch.UIKit.UIPresentationController or null if there is none.
[read-only]
PresentedViewControllerUIViewController. The MonoTouch.UIKit.UIViewController that is being presented by this MonoTouch.UIKit.UIViewController or one of this’s ancestor MonoTouch.UIKit.UIViewControllers.
[read-only]
PresentingViewControllerUIViewController. The MonoTouch.UIKit.UIViewController that is presenting this MonoTouch.UIKit.UIViewController.
ProvidesPresentationContextTransitionStylebool. true if this MonoTouch.UIKit.UIViewController overrides the transition style of the MonoTouch.UIKit.UIViewController that it presents.
RestorationClassMonoTouch.ObjCRuntime.Class. The class responsible for restoring application state.
RestorationIdentifierstring. Specifies the instance of the MonoTouch.UIKit.UIViewController for restoration.
[read-only]
RightLayoutGuideUILayoutSupport. Indicates right-most extent for the specified onscreen content, with regard to your Auto Layout constraints.
[read-only]
RotatingFooterViewUIView. The footer view that needs to be transitioned during an interface rotation
[read-only]
RotatingHeaderViewUIView. The header view that needs to be transitioned during an interface rotation.
[read-only]
SearchDisplayControllerUISearchDisplayController. The MonoTouch.UIKit.UISearchDisplayController, if any, associated with this MonoTouch.UIKit.UIViewController.
[read-only]
ShouldAutomaticallyForwardAppearanceMethodsbool. Whether appearance methods should be forwarded to child MonoTouch.UIKit.UIViewControllers.
[read-only]
ShouldAutomaticallyForwardRotationMethodsbool. Whether rotation methods should be forwarded to child MonoTouch.UIKit.UIViewControllers.
[read-only]
static
ShowDetailTargetDidChangeNotificationMonoTouch.Foundation.NSString. Notification constant for ShowDetailTargetDidChange
[read-only]
SplitViewControllerUISplitViewController. The nearest ancestor MonoTouch.UIKit.UISplitViewController or null.
[read-only]
StoryboardUIStoryboard. The MonoTouch.UIKit.UIStoryboard from which this MonoTouch.UIKit.UIViewController was created, or null.
[read-only]
TabBarControllerUITabBarController. The nearest ancestore MonoTouch.UIKit.UITabBarController or null.
TabBarItemUITabBarItem. A MonoTouch.UIKit.UITabBarItem that represents this MonoTouch.UIKit.UIViewController in its parent’s MonoTouch.UIKit.UITabBarController’s UITabBarController.UITabBar.
Titlestring. A human-meaningful identifier of this MonoTouch.UIKit.UIViewController.
ToolbarItemsUIBarButtonItem[]. The array of MonoTouch.UIKit.UIBarButtonItems on a MonoTouch.UIKit.UINavigationController’s UINavigationController.Toolbar
[read-only]
TopLayoutGuideIUILayoutSupport. The highest vertical extent of onscreen content. Used by Auto Layout constraints. Read-only.
[read-only]
TraitCollectionUITraitCollection. Characteristics of the display, such as it's idiom, scale, and size class.
TransitioningDelegateUIViewControllerTransitioningDelegate. A delegate object that is responsible for producing MonoTouch.UIKit.IUIViewControllerAnimatedTransitionings for custom presentation.
ViewUIView. The view managed by this view controller.
WantsFullScreenLayoutbool. true if the view should overlap the status bar.
WeakTransitioningDelegateMonoTouch.Foundation.NSObject. The delegate object used to provide controllers for transition animations and interactions.

Public Methods

Add(UIView)
This is an alias for UIView.AddSubview, but uses the Add pattern as it allows C# 3.0 constructs to add subviews after creating the object.
AddChildViewController(UIViewController)
Adds a MonoTouch.UIKit.UIViewController as a child.
ApplicationFinishedRestoringState()
Called when object decoding is complete during state restoration.
static
AttemptRotationToDeviceOrientation()
Programmatically triggers rotation of views.
BeginAppearanceTransition(bool, bool)
With UIViewController.EndAppearanceTransition, tells child MonoTouch.UIKit.UIViewControllers that their MonoTouch.UIKit.UIViews are about to either appear or disappear.
CanPerformUnwind(MonoTouch.ObjCRuntime.Selector, UIViewController, MonoTouch.Foundation.NSObject) : bool
Specifies whether this MonoTouch.UIKit.UIViewController supports the specific unwind segue
ChildViewControllerForStatusBarHidden() : UIViewController
When overridden, returns the UIViewController that determines whether the status bar is hidden or unhidden.
ChildViewControllerForStatusBarStyle() : UIViewController
When overridden, returns the UIViewController that determines the style of the status bar.
DecodeRestorableState(MonoTouch.Foundation.NSCoder)
With UIViewController.EncodeRestorableState, allows custom state restoration.
DidAnimateFirstHalfOfRotation(UIInterfaceOrientation)
Deprecated function called at end of first-part of two-step rotation animations.
DidMoveToParentViewController(UIViewController)
Called after this is added or removed from a parent MonoTouch.UIKit.UIViewController.
DidReceiveMemoryWarning()
Called when the system is running low on memory.
DidRotate(UIInterfaceOrientation)
Called after the UI has rotated.
DismissModalViewControllerAnimated(bool)
Dismisses the modal MonoTouch.UIKit.UIViewController.
DismissMoviePlayerViewController()
Dismisses the MonoTouch.MediaPlayer.MPMoviePlayerViewController.
DismissViewController(bool, MonoTouch.Foundation.NSAction)
Dismisses the presented MonoTouch.UIKit.UIViewController.
DismissViewControllerAsync(bool) : System.Threading.Tasks.Task
Dismisses the presented .
EncodeRestorableState(MonoTouch.Foundation.NSCoder)
With UIViewController.DecodeRestorableState, allows custom state restoration.
EndAppearanceTransition()
With UIViewController.BeginAppearanceTransition, tells child MonoTouch.UIKit.UIViewControllers that their child views have just appeared or disappeared.
GetEnumerator() : IEnumerator
Returns an enumerator that lists all of the child MonoTouch.UIKit.UIViews
GetOverrideTraitCollectionForChildViewController(UIViewController) : UITraitCollection
Gets the MonoTouch.UIKit.UITraitCollection for the specified child view controller of this controller.
GetSegueForUnwinding(UIViewController, UIViewController, string) : UIStoryboardSegue
Defines the segue to be used between two MonoTouch.UIKit.UIViewControllers.
GetSizeForChildContentContainer(IUIContentContainer, System.Drawing.SizeF) : System.Drawing.SizeF
Gets the size of the content of the specified child MonoTouch.UIKit.IUIContentContainer by using the size of the parent container.
GetSupportedInterfaceOrientations() : UIInterfaceOrientationMask
The orientations supported by this MonoTouch.UIKit.UIViewController.
GetTargetViewControllerForAction(MonoTouch.ObjCRuntime.Selector, MonoTouch.Foundation.NSObject) : UIViewController
Gets the view controller for the specified action and sender.
GetViewControllerForUnwind(MonoTouch.ObjCRuntime.Selector, UIViewController, MonoTouch.Foundation.NSObject) : UIViewController
Used for searching child MonoTouch.UIKit.UIViewControllers for a specific unwind segue.
LoadView()
Initializes the UIViewController.View property.
PerformSegue(string, MonoTouch.Foundation.NSObject)
Performs the specified MonoTouch.UIKit.UIStoryboardSegue.
PreferredContentSizeDidChangeForChildContentContainer(IUIContentContainer)
Notifies this controller that the preferred size for content for a specified child container has changed.
PreferredInterfaceOrientationForPresentation() : UIInterfaceOrientation
The orientation that best displays the content of this MonoTouch.UIKit.UIViewController.
PreferredStatusBarStyle() : UIStatusBarStyle
The preferred UIStatusBarStyle for this UIViewController.
PrefersStatusBarHidden() : bool
Whether this UIViewController prefers the status bar to be hidden.
static
PrepareForInterstitialAds()
Prepares the view controller to display interstitial ads.
PrepareForSegue(UIStoryboardSegue, MonoTouch.Foundation.NSObject)
Informs the application that a MonoTouch.UIKit.UIStoryboardSegue is about to be executed.
PresentModalViewController(UIViewController, bool)
Application developers should use UIViewController.PresentViewController instead of this deprecated method.
PresentMoviePlayerViewController(MonoTouch.MediaPlayer.MPMoviePlayerViewController)
Displays a movie controller using the standard transition.
PresentViewController(UIViewController, bool, MonoTouch.Foundation.NSAction)
Presents a MonoTouch.UIKit.UIViewController. On iPhone and iTouch, presentation is always full screen, on iPad, the style is specified with UIViewController.ModalPresentationStyle.
PresentViewControllerAsync(UIViewController, bool) : System.Threading.Tasks.Task
Presents a . On iPhone and iTouch, presentation is always full screen, on iPad, the style is specified with .
RemoveFromParentViewController()
Removes this MonoTouch.UIKit.UIViewController from its UIViewController.ParentViewControllerMonoTouch.UIKit.UIViewController.
SetEditing(bool, bool)
Turns editing mode on or off.
SetNeedsStatusBarAppearanceUpdate()
Notifies the system that the attributes of the status bar have been changed.
SetOverrideTraitCollection(UITraitCollection, UIViewController)
Sets the MonoTouch.UIKit.UITraitCollection object for the specified child view controller of this controller.
SetToolbarItems(UIBarButtonItem[], bool)
Adds MonoTouch.UIKit.UIBarButtonItems to the MonoTouch.UIKit.UIToolbar
ShouldAutorotate() : bool
Turns auto-rotation on or off.
ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation) : bool
true if the MonoTouch.UIKit.UIViewController supports rotation to the specified MonoTouch.UIKit.UIInterfaceOrientation.
ShouldPerformSegue(string, MonoTouch.Foundation.NSObject) : bool
Whether the segue should be performed.
ShowDetailViewController(UIViewController, MonoTouch.Foundation.NSObject)
Shows this view controller in a detail context.
ShowViewController(UIViewController, MonoTouch.Foundation.NSObject)
Shows this view controller.
SystemLayoutFittingSizeDidChangeForChildContentContainer(IUIContentContainer)
Notifies this container that auto layout resized a specified child container.
TraitCollectionDidChange(UITraitCollection)
Method invoked when the trait collection for the view controller changed.
Transition(UIViewController, UIViewController, double, UIViewAnimationOptions, MonoTouch.Foundation.NSAction, UICompletionHandler)
Transitions from one child MonoTouch.UIKit.UIViewController to another.
TransitionAsync(UIViewController, UIViewController, double, UIViewAnimationOptions, MonoTouch.Foundation.NSAction) : System.Threading.Tasks.Task<bool>
Transitions from one child to another.
UpdateViewConstraints()
Called when the MonoTouch.UIKit.UIViewController needs to recalculate its layout constraints.
ViewDidAppear(bool)
Called after the UIViewController.View is added to the view hierarchy.
ViewDidDisappear(bool)

This method is called after the MonoTouch.UIKit.UIViewthat is this MonoTouch.UIKit.UIViewController’s UIViewController.View property is removed from the display MonoTouch.UIKit.UIView hierarchy.

Application developers who override this method must call base.ViewDidDisappear() in their overridden method.

ViewDidLayoutSubviews()
Called after the UIViewController.View has laid out its subviews.
ViewDidLoad()
Called after the controller’s UIViewController.View is loaded into memory.
ViewDidUnload()
In iOS 6 and later, this method is never called. In prior versions it was called when the controller’s view was released from memory.
ViewWillAppear(bool)
Called prior to the UIViewController.View being added to the view hierarchy.
ViewWillDisappear(bool)

This method is called prior to the removal of the MonoTouch.UIKit.UIViewthat is this MonoTouch.UIKit.UIViewController’s UIViewController.View from the display MonoTouch.UIKit.UIView hierarchy.

Application developers may override this method to configure animations, resign first responder status (see UIResponder.ResignFirstResponder), or perform other tasks.

Application developers who override this method must call base.ViewWillDisappear() in their overridden method.

ViewWillLayoutSubviews()
Called before the UIViewController.View lays out its subviews.
ViewWillTransitionToSize(System.Drawing.SizeF, IUIViewControllerTransitionCoordinator)
Notifies this that the size of it's view will change to the specified value, as coordinated by coordinator.
ViewWillUnload()
In iOS 6 and later, this method is never called. In prior versions it was called prior to the controller’s view was released from memory.
WillAnimateFirstHalfOfRotation(UIInterfaceOrientation, double)
Deprecated method sent during the first half of a rotation. Application developers should instead use UIViewController.WillAnimateRotation.
WillAnimateRotation(UIInterfaceOrientation, double)
Called prior to a one-step interface rotation.
WillAnimateSecondHalfOfRotation(UIInterfaceOrientation, double)
Deprecated method sent during the second half of a rotation. Application developers should instead use UIViewController.WillAnimateRotation.
WillMoveToParentViewController(UIViewController)
Called prior to adding or removing this from a container MonoTouch.UIKit.UIViewController.
WillRotate(UIInterfaceOrientation, double)
Called prior to a user interface rotation.
WillTransitionToTraitCollection(UITraitCollection, IUIViewControllerTransitionCoordinator)
Notifies this that its trait collection will change to traitCollection, as coordinated by coordinator.

Protected Methods

override
Dispose(bool)
Releases the resources used by the UIViewController object.