iphaaw
iphaaw

Reputation: 7204

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 installed?

Thanks for your help.

Andrew

Upvotes: 2

Views: 411

Answers (1)

Jhaliya - Praveen Sharma
Jhaliya - Praveen Sharma

Reputation: 31730

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.

Upvotes: 1

Related Questions