According to this answer we need to know the version of ios. How can I achieve it using libgdx's robovm backend?
Asked
Active
Viewed 967 times
3 Answers
10
When running under RoboVM java.lang.System.getProperty("os.version")
will return the iOS version.

ntherning
- 1,160
- 7
- 8
2
Easier to use, if you are in iOS module:
import org.robovm.apple.foundation.Foundation;
Foundation.getMajorSystemVersion()
// and
Foundation.getMinorSystemVersion()

alex.dorokhov
- 1,218
- 12
- 17
0
import org.robovm.apple.foundation.FoundationVersionNumber;
if (FoundationVersionNumber.getVersion() < FoundationVersionNumber.Version_iOS_8_0)

I.G. Pascual
- 5,818
- 5
- 42
- 58

serhii
- 141
- 2
- 6