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
Post a Comment