I need to save my NSUserDefault when my app is completely quit in iOS. not didenterbackground and foreground. Only when user kill my app w
NSUserDefault
didenterbackground
foreground
You can set your Application does not run in background" = "YES" in your info.plist file and you can see applicationWillTerminate delegate getting called & storing values in NSUserDefaults.
Application does not run in background" = "YES"
applicationWillTerminate
NSUserDefaults