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

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.

主站蜘蛛池模板: 城固县| 临江市| 环江| 房山区| 大庆市| 旅游| 淮北市| 鄂伦春自治旗| 友谊县| 玛纳斯县| 桐柏县| 温泉县| 茂名市| 贵南县| 株洲市| 博白县| 中宁县| 巴彦县| 乐清市| 濮阳市| 丹寨县| 阜平县| 三河市| 丁青县| 竹溪县| 珲春市| 湄潭县| 栖霞市| 兰州市| 东安县| 稷山县| 怀化市| 花莲县| 桑日县| 乡城县| 行唐县| 郓城县| 阜宁县| 锦州市| 岳普湖县| 池州市|