See Also: UINavigationController
public class UINavigationController : UIViewController
The MonoTouch API supports two styles of event notification: the Objective-C style that uses a delegate class or the C# style using event notifications.
The C# style allows the user to add or remove event handlers at runtime by assigning to the events of properties of this class. Event handlers can be anyone of a method, an anonymous methods or a lambda expression. Using the C# style events or properties will override any manual settings to the Objective-C Delegate or WeakDelegate settings.
The Objective-C style requires the user to create a new class derived from UINavigationControllerDelegate class and assign it to the UIKit.Delegate property. Alternatively, for low-level control, by creating a class derived from NSObject which has every entry point properly decorated with an [Export] attribute. The instance of this object can then be assigned to the UINavigationController.WeakDelegate property.
Prior to iOS 7, the screen area covered by the UINavigationController.NavigationBar and UINavigationController.Toolbar was excluded from the area of the UINavigationController.VisibleViewController. In iOS 7, the UINavigationController.NavigationBar and UINavigationController.Toolbar float over the child controllers' UIViewController.View. Application developers who wish to modify this behavior should manipulate the UIViewController.EdgesForExtendedLayout property.
The following illustration shows how layout of a UINavigationController is affected with UIViewController.EdgesForExtendedLayout. With the default value of UIRectEdge.All, the UIView.Frame of the UINavigationController's UIViewController.View includes the whole screen, extending beneath the toolbar at the bottom, the navigation bar, and even the status bar. The second image shows the UIView.Frame property when UIViewController.EdgesForExtendedLayout is set to UIRectEdge.None.
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0
The members of MonoTouch.UIKit.UINavigationController are listed below.
See Also: UIViewController
|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.|
|Constructor that takes a UIViewController to use as the topmost controller in the UINavigationController's controller stack.|
|A constructor used when creating managed representations of unmanaged objects; Called by the runtime.|
|[read-only]||BarHideOnSwipeGestureRecognizer||UIPanGestureRecognizer. The gesture recognizer used to hide the navigation controller in response to a swipe. (Read-only.)|
|[read-only]||BarHideOnTapGestureRecognizer||UITapGestureRecognizer. The gesture recognizer used to hide the navigation controller in response to a tap. (Read-only.)|
|ClassHandle||IntPtr. The handle for this class.|
|Delegate||UINavigationControllerDelegate. An instance of the MonoTouch.UIKit.UINavigationControllerDelegate model class which acts as the class delegate.|
|HidesBarsOnSwipe||Boolean. Whether the navigation controller should hide its bars when swiped.|
|HidesBarsOnTap||Boolean. Whether the navigation controller should hide its bars when tapped.|
|HidesBarsWhenKeyboardAppears||Boolean. Whether the navigation controller should hide its bars when the keyboard appears.|
|HidesBarsWhenVerticallyCompact||Boolean. Whether the navigation controller should hide its bars in a vertically-compact environment.|
|HideShowBarDuration||Single. Represents the value associated with the constant UINavigationControllerHideShowBarDuration|
|[read-only]||InteractivePopGestureRecognizer||UIGestureRecognizer. A gesture recognizer for the left-edge-to-interior "back" gesture.|
|[read-only]||NavigationBar||UINavigationBar. The UINavigationBar for the UINavigationController.|
|NavigationBarHidden||Boolean. Allows the navigation bar to be hidden.|
|[read-only]||Toolbar||UIToolbar. Retruns the toolbar for the navigation controller.|
|ToolbarHidden||Boolean. Controls visibility of the toolbar|
|[read-only]||TopViewController||UIViewController. The view controller currently at the top of the navigation controller's stack.|
|ViewControllers||UIViewController. The view controllers currently on the navigation controller's stack.|
|[read-only]||VisibleViewController||UIViewController. The view controller whose view is currently on the screen.|
|WeakDelegate||NSObject. An object that can respond to the delegate protocol for this type|
Pops the controller currrently at the top of the stack
Pushes a view controller onto the UINavigationController's navigation stack.
Allows the navigation controller's UINavigationBar to be shown or hidden
Allows the navigation controller's UIToolbar to be shown or hidden
Replaces the controllers in the navigation controller's navigation stack.
Shows the UIViewController based on the current size-class of the environment.