UIApplication类

1.UIApplication类

每个应用程序都只有一个UIApplication 类的实例对象,运行起来的应用程序就是一个UIApplication对象

 UIApplicationMain

创建UIApplication对像的一个单例对象(singleton)

Task

Getting the App Instance 获取单例对象

Getting the APP Delegate 获取应用程序代理--捕获程序状态

Getting App Windows 获取窗口

Controling and Handing Event 处理事件

Opening a URL Resouce 打开外部App资源

Configuring for Remote Notification  Setting 配置用户的通知

Registering for Remote Notifications  远程通知

Registering for Local Notifications 本地通知

Managing Background Execution 管理后台的执行

Managing Home Screen Quick Actions for 3D Touch 快捷方式

Controlling App Appearance 管理程序的外观

NSStringFromClass 将一个类转化为字符串形式

NSStringfromClass ([AppDelegate class])

应用程序代理和app共同运行,确保程序与系统或者其他程序之间的交互

应用程序代理是程序的root对象,整个程序运行过程中都一直存在

原文地址:https://www.cnblogs.com/yangqinglong/p/5089757.html