开发者

Change Settings based on IOS version

开发者 https://www.devze.com 2023-03-01 07:13 出处:网络
I have a settings screen that contains my own custom font menu. Some of these fonts in this list only exist in iOS 4.X and cause problems if selected in iOS 3. How can I use different plists based on

I have a settings screen that contains my own custom font menu. Some of these fonts in this list only exist in iOS 4.X and cause problems if selected in iOS 3. How can I use different plists based on which version of iOS is 开发者_JAVA技巧installed?

Thanks for your help.

Andrew


Use the UIDevice class to get the model name , version number of your device.

NSString* deviceName = [[UIDevice currentDevice] model];
NSString* deviceVersion = [[UIDevice currentDevice] systemVersion];

Based on the value of above variable , you could use the different set of plist.

0

精彩评论

暂无评论...
验证码 换一张
取 消