ios 获取手机设备信息

[UIDevice currentDevice]:表示设备

NSString *devices=[[NSString alloc]

                       initWithFormat:

                       @"unique id: %@ \nlocalized model: %@ \nsystem version: %@ \nsystem name: %@ \nmodel: %@",

                       [[UIDevice currentDevice] uniqueIdentifier],

                       [[UIDevice currentDevice] localizedModel],

                       [[UIDevice currentDevice] systemVersion],

                       [[UIDevice currentDevice] systemName],

                       [[UIDevice currentDevice] model]];

    NSLog(@"%@",devices);

posted @ 2016-05-13 09:47  神来钥匙-陈诗友  阅读(301)  评论(0编辑  收藏  举报