分享

教你如何获取ios系统信息

 叹落花 2015-06-29
教你如何获取ios系统信息
NSString *deviceID = [UIDevice currentDevice] uniqueIdentifier];//设备id
// NSString *deviceID = [UIApplication sharedApplication] uuid];
NSString *systemVersion = [UIDevice currentDevice] systemVersion];//系统版本
NSString *systemModel = [UIDevice currentDevice] model];//是iphone 还是 ipad
NSDictionary *dic = [NSBundle mainBundle] infoDictionary];//获取info-plist
NSString *appName = [dic objectForKey:@"CFBundleIdentifier"];//获取Bundle identifier
NSString *appVersion = [dic valueForKey:@"CFBundleVersion"];//获取Bundle Version
NSDictionary *userInfo = [NSDictionary alloc] initWithObjectsAndKeys:
    deviceID, @"deviceID",
    systemVersion, @"systemVersion",
    systemModel, @"systemModel",
    appName, @"appName",
    appVersion, @"appVersion",nil];

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多