开发者

applicationWillTerminate gets called in 4.3

开发者 https://www.devze.com 2023-02-17 02:26 出处:网络
I hv updated SDK and iOS to 4.3. But when i quit my app(press Home button), app开发者_Python百科licationDidEnterBackground and applicationWillTerminate methods are called.

I hv updated SDK and iOS to 4.3. But when i quit my app(press Home button), app开发者_Python百科licationDidEnterBackground and applicationWillTerminate methods are called.

in 4.2, this problem did not exist - only applicationDidEnterBackground was called. What could be the possible problem? and solution, if any?


This is what the documentation says:

For applications that support background execution, this method is generally not called when the user quits the application because the application simply moves to the background in that case. However, this method may be called in situations where the application is running in the background (not suspended) and the system needs to terminate it for some reason.

Nothing significant has changed in this regard between 4.2 and 4.3, so it's unclear why you're seeing a change. But whatever the cause, this is documented behaviour, therefore your app should be able to deal with it.

0

精彩评论

暂无评论...
验证码 换一张
取 消