kiral
V2EX  ›  iPhone

iOS 13 杀后台是因为 Life Cycle 的管理不一样了?

  •  
  •   kiral · Nov 3, 2019 · 13594 views
    This topic created in 2412 days ago, the information mentioned may be changed or developed.

    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.

    Note:

    If you enable scene support in your app, iOS always uses your scene delegates in iOS 13 and later. In iOS 12 and earlier, the system uses your app delegate.

    回调不一样了,所以么有对应处理,就变成 app 都重新启动那样子了? 其实就是 iOS 13 的适配问题?

    024b99c5-4ab6-4ee0-bb41-6e6426ec6a64.png

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   946 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:27 · PVG 05:27 · LAX 14:27 · JFK 17:27
    ♥ Do have faith in what you're doing.