开发者

Change Settings based on IOS version

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜