---
title: "IOS开发 - UIApplication , AppDelegate , UIWindow , UIViewController 的关系"
author: "cwlong"
date: "2015-08-20T11:55:41Z"
tags: []
categories: ["移动开发"]
slug: "ios-uiapplication-appdelegate-uiwindow-uiviewcontroller"
draft: false
lastmod: "2015-08-21T15:56:01Z"
id: 2236810
url: "https://cwlong.iteye.com/blog/2236810"
---

<span style="color:red"> 
1. [Info.plist和pch文件的作用](http://cwlong.iteye.com/admin/blogs/2236795)

 2. [UIApplication的常见使用](http://cwlong.iteye.com/blog/2236809)

 3. [AppDelegate的代理方法](http://cwlong.iteye.com/blog/2236811)

 4. [UIApplication , AppDelegate , UIWindow , UIViewController 的关系](http://cwlong.iteye.com/blog/2236810)

 5. [IOS程序的完整启动过程](http://cwlong.iteye.com/blog/2236812)
</span>



UIApplication , AppDelegate , UIWindow , UIViewController 的关系﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣我是分割线﹣﹣﹣﹣﹣﹣﹣﹣


UIApplication对象内部有个 delegate 属性 该属性就是 AppDelegate文件

AppDelegate对象内部有个  window  属性  该属性就是 创建出来的UIWindow

UIWindow对象内部有个  rootViewController 属性, 该属性就是 UIViewController

UIViewController 内部有个 View 属性, 该属性装着的就是 该控制器的UIView