iOS程序是基於MVC設計模式的,UIViewController是Controller的基類,通常咱們經過繼承這個類來實現本身的Controller,框架爲咱們提供了一些定義好的子類,如UINavigationController,UITabbarControllerhtml
– initWithNibName:bundle:
nibName
propertynibBundle
property– shouldPerformSegueWithIdentifier:sender:
– performSegueWithIdentifier:sender:
– prepareForSegue:sender:
storyboard
property– canPerformUnwindSegueAction:fromViewController:withSender:
view
property– isViewLoaded
– loadView
– viewDidLoad
title
property– viewDidUnload
Deprecated in iOS 6.0– viewWillUnload
Deprecated in iOS 6.0– viewWillAppear:
– viewDidAppear:
– viewWillDisappear:
– viewDidDisappear:
– viewWillLayoutSubviews
– viewDidLayoutSubviews
– isMovingFromParentViewController
– isMovingToParentViewController
– isBeingPresented
– isBeingDismissed
– shouldAutorotate
– supportedInterfaceOrientations
– preferredInterfaceOrientationForPresentation
interfaceOrientation
property+ attemptRotationToDeviceOrientation
– rotatingHeaderView
– rotatingFooterView
– shouldAutorotateToInterfaceOrientation:
Deprecated in iOS 6.0– willRotateToInterfaceOrientation:duration:
– willAnimateRotationToInterfaceOrientation:duration:
– didRotateFromInterfaceOrientation:
– didAnimateFirstHalfOfRotationToInterfaceOrientation:
Deprecated in iOS 5.0– willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
Deprecated in iOS 5.0– willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:
Deprecated in iOS 5.0editing
property– setEditing:animated:
restorationIdentifier
propertyrestorationClass
property– encodeRestorableStateWithCoder:
– decodeRestorableStateWithCoder:
– presentViewController:animated:completion:
– dismissViewControllerAnimated:completion:
modalTransitionStyle
propertymodalPresentationStyle
propertydefinesPresentationContext
propertyprovidesPresentationContextTransitionStyle
property– disablesAutomaticKeyboardDismissal
– dismissModalViewControllerAnimated:
Deprecated in iOS 6.0– presentModalViewController:animated:
Deprecated in iOS 6.0presentingViewController
propertypresentedViewController
propertyparentViewController
propertynavigationController
propertysplitViewController
propertytabBarController
propertysearchDisplayController
propertymodalViewController
property Deprecated in iOS 6.0childViewControllers
property– addChildViewController:
– removeFromParentViewController
– shouldAutomaticallyForwardRotationMethods
– shouldAutomaticallyForwardAppearanceMethods
– transitionFromViewController:toViewController:duration:options:animations:completion:
– beginAppearanceTransition:animated:
– endAppearanceTransition
– viewControllerForUnwindSegueAction:fromViewController:withSender:
– segueForUnwindingToViewController:fromViewController:identifier:
– automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers
Deprecated in iOS 6.0navigationItem
property– editButtonItem
hidesBottomBarWhenPushed
property– setToolbarItems:animated:
toolbarItems
propertytabBarItem
propertycontentSizeForViewInPopover
propertymodalInPopover
property