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

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -