简体   繁体   中英

iOS - Entry in Info.plist for only iOS 6 and above?

I have an entry in my app's Info.plist (a Dictionary), and I only want it to be used in iOS 6 and above. It involves font replacement, using FontReplacer , and I don't want to replace fonts for a device running iOS 5. You can see the example on GitHub for a better explanation.

Basically, is there a way for me to only use that Info.plist entry if the user's device is running iOS 6 or later?

Thanks.

No.

There isn't a way to tell the system to only have a specific entry available if >iOS 6.

There is, however, a way to tell whether you're on an OS > 6 in code, though:

#ifdef IPHONE_6_0
    //...
#endif

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