//    IOS-获取Model(设备型号)、Version(设备版本号)、app(程序版本号)等
    NSLog(@"name: %@", [[UIDevice currentDevice] name]);
    NSLog(@"systemName: %@", [[UIDevice currentDevice] systemName]);
    NSLog(@"systemVersion: %@", [[UIDevice currentDevice] systemVersion]);
    NSLog(@"model: %@", [[UIDevice currentDevice] model]);
    NSLog(@"localizedModel: %@", [[UIDevice currentDevice] localizedModel]);
    
    NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
    
    CFShow((__bridge CFTypeRef)(infoDictionary));
    
    // app名称
    NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
    NSLog(@"name: %@", app_Name);

    // app版本
    NSString *app_Version = ;
    NSLog(@"name: %@", app_Version);

    // app build版本
    NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion”];


UIDevice *device = [UIDevice currentDevice];
    float sysVersion = [device.systemVersion floatValue];

Eidesen
427 声望16 粉丝

专注iOS,Swift开发,总结了一下自己项目中遇到的问题,及解决方案。欢迎小伙伴讨论和多多指教--->记得顺手点个关注额(⊙o⊙)…。