ApplicationWillTerminate in iOS 4.0

前端 未结 4 416
一整个雨季
一整个雨季 2020-11-29 22:40

The applicationWillTerminate delegate method is not getting called in iOS 4.0 When I hit the Home button I am seeing the applicationWillResignActive and applicationDidEnter

4条回答
  •  被撕碎了的回忆
    2020-11-29 22:54

    I got one solution for terminating apps when user hits the Home button in iOS4. This will call the applicationWillTerminate delegate method instead of entering into background process.

    1. Open your info.plist file
    2. Add The Key UIApplicationExitsOnSuspend
    3. Set the new key to YES

提交回复
热议问题