[英]get the os version of the ios device connected to the PC
The application is developed in java.We need to detect the OS version of the connected IOS Device to the windows or Mac Machine. 该应用程序是用Java开发的。我们需要检测与Windows或Mac Machine连接的IOS设备的OS版本。 Since the code is in java, we cant use UIDevice Class. 由于代码在Java中,因此我们无法使用UIDevice类。 Is there any way we can detect the OS Version of the connected IOS Device. 有什么方法可以检测到所连接的IOS设备的操作系统版本。
You can get current version of ios as following code 您可以通过以下代码获取当前版本的ios
NSString *ver = [[UIDevice currentDevice] systemVersion];
int ver_int = [ver intValue];
float ver_float = [ver floatValue];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.