zoukankan      html  css  js  c++  java
  • iOS-获取Model(设备型号)、Version(设备版本)、app(程序版本)等

    IOS-获取Model(设备型号)、Version(设备版本)、app(程序版本)等

        NSLog(@"uniqueIdentifier: %@", [[UIDevice currentDevice] uniqueIdentifier]);
        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(infoDictionary);

    // app名称

     NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];

     // app版本号

     NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];

     // app build版本号

     NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];

  • 相关阅读:
    大二暑期周总结(四)
    大二暑期周总结(三)
    寒假十七
    寒假十六
    寒假十五
    寒假十四
    寒假十三
    寒假十二
    寒假十一
    寒假十
  • 原文地址:https://www.cnblogs.com/lytwajue/p/7073051.html
Copyright © 2011-2022 走看看