ios 获取设备信息

来源:互联网 发布:零基础怎么自学编程 编辑:程序博客网 时间:2024/04/29 15:21

    UIDevice *device_=[[UIDevicealloc]init];

    NSLog(@"设备所有者的名称--%@",device_.name);

    NSLog(@"设备的类别-----%@",device_.model);

   NSLog(@"设备的的本地化版本-%@",device_.localizedModel);

    NSLog(@"设备运行的系统---%@",device_.systemName);

   NSLog(@"当前系统的版本---%@",device_.systemVersion);

    NSLog(@"设备识别码-----%@",device_.identifierForVendor.UUIDString);

0 0