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

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.

主站蜘蛛池模板: 乐东| 宜君县| 田阳县| 玉溪市| 任丘市| 新余市| 富源县| 镇巴县| 淮安市| 东台市| 洛阳市| 杭州市| 巴塘县| 乳源| 长海县| 宣城市| 梅州市| 连平县| 丹东市| 丹江口市| 台南县| 济南市| 女性| 海盐县| 奇台县| 定结县| 全南县| 岳普湖县| 渑池县| 尚志市| 邢台县| 建平县| 汝南县| 昂仁县| 邛崃市| 定安县| 泸溪县| 淮滨县| 邯郸市| 德钦县| 炎陵县|