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

相關文章
相關標籤/搜索