官术网_书友最值得收藏!

Introduction

So far, we have discussed views and how to use them. In most cases of real world app scenarios, views alone are not enough. Apple provides another base class, the UIViewController class, which is responsible for managing views. A view controller can respond to device notifications, such as when the device rotates, or can provide different ways to display and dismiss multiple views or even other view controllers. There are a number of view controllers available for us to use. In this chapter, we will discuss the most important ones.

These view controllers are as follows:

  • UIViewController: This is the base class of all view controllers.
  • UINavigationController: This is the view controller that provides various ways of navigating through different view controllers.
  • UITabBarController: This is a view controller that displays multiple view controllers in a tab-like interface.
  • iPad-specific view controllers: These are the view controllers that only apply to the iPad device.

Furthermore, we will learn how to create our own custom view controllers, and we will create an app whose user interface will be created with storyboard files.

主站蜘蛛池模板: 安岳县| 石门县| 阳新县| 修武县| 平昌县| 尉犁县| 武宣县| 扶余县| 读书| 绩溪县| 岳普湖县| 安宁市| 鄂托克前旗| 江孜县| 万宁市| 安远县| 泊头市| 湟中县| 宁阳县| 宁陕县| 民勤县| 章丘市| 永川市| 新密市| 济宁市| 四子王旗| 公主岭市| 松潘县| 武夷山市| 榆中县| 扬州市| 昭通市| 澎湖县| 台州市| 称多县| 新田县| 武强县| 扶沟县| 绥江县| 晋州市| 凤阳县|