iOS获取当前系统的相关信息 - - 博客频道 - CSDN.NET (3)

iOS获取当前系统的相关信息 - - 博客频道 - CSDN.NET (3)

NSLog([[UIDevice currentDevice] name]); // Name of the phone as named by user

NSLog([[UIDevice currentDevice] uniqueIdentifier]); // A GUID like string

NSLog([[UIDevice currentDevice] systemName]); // "iPhone OS"

NSLog([[UIDevice currentDevice] systemVersion]); // "2.2.1"

NSLog([[UIDevice currentDevice] model]); // "iPhone" on both devices

NSLog([[UIDevice currentDevice] localizedModel]); // "iPhone" on both devices

float version = [[[UIDevice currentDevice] systemVersion] floatValue]; //获取版本号

if (version >= sdk number)

{


}





你可能感兴趣的:(.net)