iOS 4 Core Data… any changes with multitasking?

后端 未结 1 773
孤独总比滥情好
孤独总比滥情好 2021-02-09 22:18

I have a question, i carefully went through and thoroughly understood the tutorial for iOS Core Data.

The issue was that when i coded everything and run on iOS 4 with mu

1条回答
  •  终归单人心
    2021-02-09 22:40

    With iOS 4.0, your app may not receive a -applicationWillTerminate call. It may only receive a call to go into the background and then be killed.

    When you get the call to go into the background you should dump as much memory as possible to avoid being killed, that includes saving your context and perhaps calling reset on the context to get it to drop its cache.

    Other than that, no changes need to be made.

    What crash are you seeing, a stack trace would be helpful to explore this further.

    Update

    Again What crash are you seeing?

    Update

    Freezes where? Where does it stop when you look at it in Shark or the debugger? You are not giving me a lot of information to go on here :)

    0 讨论(0)
提交回复
热议问题