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.
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";
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.
精彩评论