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

◇◆丶佛笑我妖孽 提交于 2019-12-24 00:58:43

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/17286240/ios-entry-in-info-plist-for-only-ios-6-and-above

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!