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

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.

主站蜘蛛池模板: 古交市| 东台市| 右玉县| 青川县| 冀州市| 藁城市| 万年县| 汝阳县| 安康市| 甘孜| 东辽县| 九江市| 洛宁县| 呼伦贝尔市| 大渡口区| 滕州市| 广昌县| 扎兰屯市| 辽宁省| 阿尔山市| 通道| 修武县| 海淀区| 青神县| 遂川县| 沿河| 山西省| 朝阳县| 盖州市| 措勤县| 广饶县| 洪江市| 华安县| 海口市| 新津县| 太原市| 徐汇区| 兴业县| 民权县| 潮安县| 灵山县|