Cocoa touch(六):UIViewController

iOS程序是基于MVC设计模式的,UIViewController是Controller的基类,一般我们通过继承这个类来实现自己的Controller,框架为我们提供了一些定义好的子类,如UINavigationController,UITabbarController

Creating a View Controller Using Nib Files

Using a Storyboard

Managing the View

Handling Memory Warnings

Responding to View Events

Testing for Specific Kinds of View Transitions

Configuring the View’s Layout Behavior

Configuring the View Rotation Settings

Responding to View Rotation Events

Responding to Containment Events

Adding Editing Behaviors to Your View Controller

Managing State Restoration

Presenting Another View Controller’s Content

Getting Other Related View Controllers

Managing Child View Controllers in a Custom Container

Configuring a Navigation Interface

Configuring Tab Bar Items

Configuring Display in a Popover Controller

原文地址:https://www.cnblogs.com/iprogrammer/p/3252711.html