Ios 如何在objective c中获取操作系统名称
我想在objective-c中检测当前设备操作系统名称(如操作系统:iOS) 你能帮我解决我的问题吗 提前谢谢Ios 如何在objective c中获取操作系统名称,ios,objective-c,Ios,Objective C,我想在objective-c中检测当前设备操作系统名称(如操作系统:iOS) 你能帮我解决我的问题吗 提前谢谢 NSString *strName = [[UIDevice currentDevice] name]; NSLog(@"%@", strName);//e.g. "My iPhone" NSString *strSysName = [[UIDevice currentDevice] systemName]; NSLog(@"%@", strSysName);/
NSString *strName = [[UIDevice currentDevice] name];
NSLog(@"%@", strName);//e.g. "My iPhone"
NSString *strSysName = [[UIDevice currentDevice] systemName];
NSLog(@"%@", strSysName);// e.g. @"iOS"
NSString *strSysVersion = [[UIDevice currentDevice] systemVersion];
NSLog(@"%@", strSysVersion);// e.g. @"4.0"
NSString *strModel = [[UIDevice currentDevice] model];
NSLog(@"%@", strModel);// e.g. @"iPhone", @"iPod touch"
NSString *strLocModel = [[UIDevice currentDevice] localizedModel];
NSLog(@"%@", strLocModel);// localized version of model