简体   繁体   中英

UIKit keys missing in info.plist file

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM