Cocoa touch(六):UIViewController

iOS程序是基于MVC设计模式的,UIViewController是Controller的基类,通常咱们经过继承这个类来实现本身的Controller,框架为咱们提供了一些定义好的子类,如UINavigationController,UITabbarControllerhtml

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

相关文章
相关标签/搜索