ios 获取手机设备信息

[UIDevice currentDevice]:表示设备

NSString *devices=[[NSString alloc]

                       initWithFormat:

                       @"unique id: %@ localized model: %@ system version: %@ system name: %@ model: %@",

                       [[UIDevice currentDevice] uniqueIdentifier],

                       [[UIDevice currentDevice] localizedModel],

                       [[UIDevice currentDevice] systemVersion],

                       [[UIDevice currentDevice] systemName],

                       [[UIDevice currentDevice] model]];

    NSLog(@"%@",devices);

原文地址:https://www.cnblogs.com/shenlaiyaoshi/p/5488325.html