public class UINavigationController extends UIViewController
Constructor and Description |
---|
UINavigationController()
The default UINavigationController required for the
MFMessageComposeViewController.
|
UINavigationController(UIViewController rootViewController)
Initializes and returns a newly created navigation controller.
|
Modifier and Type | Method and Description |
---|---|
UINavigationControllerDelegate |
delegate()
Returns the delegate of this navigation controller.
|
void |
didReceiveMemoryWarning()
Called when a memory warning arises in order to notify the view
controller.
|
void |
didRotateFromInterfaceOrientation(int UIInterfaceOrientation)
Called after the user interface rotation in order to notify the view
controller.
|
boolean |
isNavigationBarHidden()
Returns a Boolean that indicates whether the navigation bar of this
navigation controller is hidden.
|
boolean |
isToolbarHidden()
Returns a Boolean that defines toolbar's visibility.
|
void |
loadView()
Creates a view for this view controller.
|
UINavigationBar |
navigationBar()
Returns the navigation bar of this navigation controller.
|
List<UIViewController> |
popToRootViewControllerAnimated(boolean animated)
Returns the list of all the view controllers of the navigation stack that
are poped out using animation or not.
|
List<UIViewController> |
popToViewController(UIViewController controller,
boolean animated)
Returns the list of all the view controllers of the navigation stack that
are poped out using animation or not, until the specified view
controller.
|
UIViewController |
popViewControllerAnimated(boolean animated)
Returns and pops the top view controller of the navigation stack using
animation or not.
|
void |
pushViewController(UIViewController controller,
boolean animated)
Pushes the specified view controller into this navigation stack and
updates the display.
|
void |
setDelegate(UINavigationControllerDelegate delegate)
Sets the delegate for this navigation controller.
|
void |
setNavigationBarHidden(boolean navigationBarHidden)
Sets a Boolean that defines whether the navigation bar of this navigation
controller.
|
void |
setNavigationBarHidden(boolean navigationBarHidden,
boolean animated)
Hides or shows the navigation bar of this controller using animation or
not.
|
void |
setToolbarHidden(boolean toolbarHidden)
Sets a Boolean that defines whether toolbar is hidden or not.
|
void |
setToolbarHidden(boolean toolbarHidden,
boolean animated)
Hides or shows toolbar using animation or not.
|
void |
setViewControllers(List<UIViewController> controllers)
Sets the list of view controllers into the navigation stack replacing the
existing.
|
void |
setViewControllers(List<UIViewController> controllers,
boolean animated)
Sets the list of view controllers into the navigation stack replacing the
existing using animation or not.
|
void |
showViewController(UIViewController vc,
Object sender)
Shows a view Controller
|
UITabBarItem |
tabBarItem()
Returns the tab bar item for this view controller when added to a tab bar
controller.
|
UIToolbar |
toolbar()
Returns the custom toolbar of this navigation controller.
|
UIViewController |
topViewController()
Returns the top view controller of the navigation stack.
|
List<UIViewController> |
viewControllers()
Returns the list of view controllers currently into the navigation stack.
|
void |
viewDidAppear(boolean animated)
Called after the view was added to the view controller's hierarchy with
animation or not according to the Boolean parameter.
|
void |
viewDidDisappear(boolean animated)
Called when the view was removed from the view controller's hierarchy
with animation or not according to the Boolean parameter.
|
void |
viewWillAppear(boolean animated)
Called before the view is added to the view controller's hierarchy with
animation or not according to the Boolean parameter.
|
void |
viewWillDisappear(boolean animated)
Called when the view is about to be removed from the view controller's
hierarchy with animation or not according to the Boolean parameter.
|
UIViewController |
visibleViewController()
Returns the view controller whose view is currently visible on screen.
|
void |
willAnimateRotationToInterfaceOrientation(int UIInterfaceOrientation,
double duration)
Called right before the user interface begins one-step user rotating in
order to notify the view controller.
|
void |
willRotateToInterfaceOrientation(int UIInterfaceOrientation,
double duration)
Called right before the user interface begins rotating in order to notify
the view controller.
|
addChildViewController, additionalSafeAreaInsets, allowedChildViewControllersForUnwindingFromSource, attemptRotationToDeviceOrientation, automaticallyAdjustsScrollViewInsets, beginAppearanceTransition, bottomLayoutGuide, childViewControllerContainingSegueSource, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, contentSizeForViewInPopover, definesPresentationContext, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissViewControllerAnimated, edgesForExtendedLayout, editButtonItem, endAppearanceTransition, extensionContext, hidesBottomBarWhenPushed, interfaceOrientation, isEditing, isModalInPopover, isViewLoaded, loadViewIfNeeded, modalPresentationStyle, modalTransitionStyle, navigationController, navigationItem, nextResponder, nibName, parentViewController, performSegueWithIdentifier, preferredInterfaceOrientationForPresentation, preferredStatusBarStyle, prefersStatusBarHidden, prepareForSegue, presentedViewController, presentingViewController, presentModalViewController, presentViewController, providesPresentationContextTransitionStyle, removeFromParentViewController, restorationIdentifier, rotatingFooterView, rotatingHeaderView, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditing, setHidesBottomBarWhenPushed, setModalInPopover, setModalPresentationStyle, setModalTransitionStyle, setNeedsStatusBarAppearanceUpdate, setProvidesPresentationContextTransitionStyle, setRestorationIdentifier, setTabBarItem, setTitle, setToolbarItems, setToolbarItems, setView, setWantsFullScreenLayout, shouldAutomaticallyForwardAppearanceMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifier, showDetailViewController, splitViewController, storyboard, supportedInterfaceOrientations, tabBarController, title, toolbarItems, topLayoutGuide, transitionFromViewController, view, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, viewSafeAreaInsetsDidChange, viewWillLayoutSubviews, wantsFullScreenLayout
becomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public UINavigationController()
public UINavigationController(UIViewController rootViewController)
rootViewController
- The view controller that resides at the bottom
of the navigation stack. This object cannot be an instance of the
UITabBarController class.public UIViewController topViewController()
public UIViewController visibleViewController()
public List<UIViewController> viewControllers()
public void setViewControllers(List<UIViewController> controllers)
controllers
- The new list of view controllers.public void setViewControllers(List<UIViewController> controllers, boolean animated)
controllers
- The new list of view controllers.animated
- TRUE the change is animated.public void pushViewController(UIViewController controller, boolean animated)
controller
- The view controller that is pushed into the stack.animated
- TRUE the push is animated.public void showViewController(UIViewController vc, Object sender)
UIViewController
showViewController
in class UIViewController
vc
- View Controller to showsender
- Object that requested the View Controllerpublic UIViewController popViewControllerAnimated(boolean animated)
animated
- TRUE the pop is animatedpublic List<UIViewController> popToViewController(UIViewController controller, boolean animated)
controller
- The view controller that is left at the top of the
navigation stack.animated
- TRUE the pop is animated.public List<UIViewController> popToRootViewControllerAnimated(boolean animated)
animated
- TRUE the pop is animated.public boolean isNavigationBarHidden()
public void setNavigationBarHidden(boolean navigationBarHidden)
navigationBarHidden
- TRUE then the navigation bar of this
navigation controller is hidden.public void setNavigationBarHidden(boolean navigationBarHidden, boolean animated)
navigationBarHidden
- TRUE then sets the navigation bar hidden.animated
- TRUE then the change is animated.public UINavigationBar navigationBar()
public boolean isToolbarHidden()
public void setToolbarHidden(boolean toolbarHidden)
toolbarHidden
- TRUE then sets the toolbar hidden.public void setToolbarHidden(boolean toolbarHidden, boolean animated)
toolbarHidden
- TRUE then hides the toolbar.animated
- TRUE then uses animation for the change.public UIToolbar toolbar()
public void setDelegate(UINavigationControllerDelegate delegate)
delegate
- The delegate for this navigation controller.UINavigationControllerDelegate
public UINavigationControllerDelegate delegate()
UINavigationControllerDelegate
public void viewWillAppear(boolean animated)
UIViewController
viewWillAppear
in class UIViewController
animated
- If set TRUE the view is added with animation.public void viewDidAppear(boolean animated)
UIViewController
viewDidAppear
in class UIViewController
animated
- If set TRUE the view was added with animation.public void viewWillDisappear(boolean animated)
UIViewController
viewWillDisappear
in class UIViewController
animated
- If set TRUE the view is removed with animation.public void viewDidDisappear(boolean animated)
UIViewController
viewDidDisappear
in class UIViewController
animated
- If set TRUE the view was removed with animation.public void didReceiveMemoryWarning()
UIViewController
didReceiveMemoryWarning
in class UIViewController
public void willRotateToInterfaceOrientation(int UIInterfaceOrientation, double duration)
UIViewController
willRotateToInterfaceOrientation
in class UIViewController
UIInterfaceOrientation
- The new orientation of the user interface.duration
- The duration of the rotation expressed in seconds.UIInterfaceOrientation
public void didRotateFromInterfaceOrientation(int UIInterfaceOrientation)
UIViewController
didRotateFromInterfaceOrientation
in class UIViewController
UIInterfaceOrientation
- The previous orientation of the user
interface.UIInterfaceOrientation
public void willAnimateRotationToInterfaceOrientation(int UIInterfaceOrientation, double duration)
UIViewController
willAnimateRotationToInterfaceOrientation
in class UIViewController
UIInterfaceOrientation
- The new orientation of the user interface.duration
- The duration of the rotation expressed in seconds.UIInterfaceOrientation
public void loadView()
UIViewController
loadView
in class UIViewController
public UITabBarItem tabBarItem()
UIViewController
tabBarItem
in class UIViewController
Copyright © 2020. All rights reserved.