Just to warn you all that applicationWillTerminate: will not be called on multitasking devices if app is suspended and then killed via the multitasking UI. According to Apple: "apps are not aware of any transitions into or out-of the suspended state". So if you're saving anything inside applicationWillTerminate: you better do it in applicationWillResignActive: also.
Best
Edit:
Reference - https://devforums.apple.com/message/239897#239897