objective c - How to detect iPhone OS version in the app? -


I would like to detect the iPhone OS version in the app, you can also post the sample code. I tried to use a macro, which did not help.

If you want conditional compilation, then you need to use macros:

< Works on previous> #if __IPHONE_8_0 // & gt; = Version 8.0 #else // & lt; To check on runtime, use:
  Float Vir = [[[UIDwise Diasdive] Systemversion, version 8.0 # ndif  

or alternatively, to check it at runtime ] Float value]; If (ver & gt; = 8.0) {// only applies to version 8 or above}


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

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