Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

深入理解 UIApplication #71

Open
ShannonChenCHN opened this issue Jul 9, 2017 · 2 comments
Open

深入理解 UIApplication #71

ShannonChenCHN opened this issue Jul 9, 2017 · 2 comments

Comments

@ShannonChenCHN
Copy link
Owner

ShannonChenCHN commented Jul 9, 2017

大纲

  • UIApplication 简介
  • 应用生命周期
  • UIApplicationMain 函数
  • RunLoop
  • 相关API
  • 实践应用

相关 issue

@ShannonChenCHN
Copy link
Owner Author

ShannonChenCHN commented Jul 9, 2017

@ShannonChenCHN ShannonChenCHN changed the title 聊聊 UIApplication 深入理解 UIApplication Mar 23, 2018
@ShannonChenCHN
Copy link
Owner Author

ShannonChenCHN commented Jun 14, 2021

App's Life Cycle

When your app’s state changes, UIKit notifies you by calling methods of the appropriate delegate object:

  • In iOS 13 and later, use UISceneDelegate objects to respond to life-cycle events in a scene-based app.
  • In iOS 12 and earlier, use the UIApplicationDelegate object to respond to life-cycle events.

1. Respond to Scene-Based Life-Cycle Events

image

2. Respond to App-Based Life-Cycle Events

image

参考:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant