How to detect iPhone OS version using macros -


I would like to detect the iPhone OS version in my app. I tried to use the detector code but using macros Was advised to. Have an experience, can you post sample code, and which library you can use

I do not know you have always been advised to use macros I always thought The standard way to find the version number is to be compatiable with the future and to use previous versions

  NSString * versionNumber = [[UIDevice currentDevice] systemVersion]  

which it gives in the form of nsstating such as @ "2.0" or @ "2.2.1"

are version constants that are available in the version of Foundation Classes Arnn do, which is being used NSFoundationVersionNumber but I am unsure how the old and reliable future Code.


Comments

Popular posts from this blog

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -