Reputation: 361
I want to add UIApplicationExitsOnSuspend key in info.plist file
but all the UI related keys are missing.
What should be done to get UI related keys in info.plist file
I have default frameworks uikit, foundation and coregraphics added to my project.
Upvotes: 0
Views: 1057
Reputation: 31
If you look in the project.xcodeproj file, search for Info.plist. The entry is probably missing this:
plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist";
Upvotes: 3
Reputation: 10621
If you have created your project for an earlier iOS version, it is still made for this and doesn't recognize the new keys. Try this: Open your Info.plist as a plain text file and insert following text to it.
<key>UIApplicationExitsOnSuspend</key>
<true/>
Save the file and any the app closes now on suspend.
Upvotes: 0