zoukankan      html  css  js  c++  java
  • 获取当前应用信息

    • 使用方法获取当前应用信息
        NSDictionary *info = [[NSBundle mainBundle]infoDictionary];
    • 打印字典
        NSLog(@"infoD === %@",info);
    • 输出如下
     1 BuildMachineOSBuild = 15E65;
     2     CFBundleDevelopmentRegion = en;
     3     CFBundleExecutable = 12456;
     4     CFBundleIdentifier = "O.-2456";
     5     CFBundleInfoDictionaryVersion = "6.0";
     6     CFBundleInfoPlistURL = "Info.plist -- file:///Users/apple/Library/Developer/CoreSimulator/Devices/9499ABB3-C83F-426A-B8D1-7D6B11416F75/data/Containers/Bundle/Application/4E5C4BD4-BCC5-4A59-9F2A-B23E18A67069/12456.app/";
     7     CFBundleName = 12456;
     8     CFBundleNumericVersion = 16809984;
     9     CFBundlePackageType = APPL;
    10     CFBundleShortVersionString = "1.0";
    11     CFBundleSignature = "????";
    12     CFBundleSupportedPlatforms =     (
    13         iPhoneSimulator
    14     );
    15     CFBundleVersion = 1;
    16     DTCompiler = "com.apple.compilers.llvm.clang.1_0";
    17     DTPlatformBuild = "";
    18     DTPlatformName = iphonesimulator;
    19     DTPlatformVersion = "9.3";
    20     DTSDKBuild = 13E230;
    21     DTSDKName = "iphonesimulator9.3";
    22     DTXcode = 0731;
    23     DTXcodeBuild = 7D1014;
    24     LSRequiresIPhoneOS = 1;
    25     MinimumOSVersion = "9.2";
    26     UIDeviceFamily =     (
    27         1,
    28         2
    29     );
    30     UILaunchStoryboardName = LaunchScreen;
    31     UIMainStoryboardFile = Main;
    32     UIRequiredDeviceCapabilities =     (
    33         armv7
    34     );
    35     UISupportedInterfaceOrientations =     (
    36         UIInterfaceOrientationPortrait,
    37         UIInterfaceOrientationLandscapeLeft,
    38         UIInterfaceOrientationLandscapeRight
    39     );
  • 相关阅读:
    PHP读取Excel文件(PHPExcel)
    Yii实现Password Repeat Validate Rule
    php中字符串长度和截取的函数
    【推荐】PHP中格式化时间函数date与gmdate的区别 | 修改PHP的默认时区
    PHP+AJAX 地区三级联动代码
    ECSHOP session
    JS 中 Class
    js 匿名函数 json
    JS操作JSON总结
    ECshop中的session机制理解
  • 原文地址:https://www.cnblogs.com/tig666666/p/5564750.html
Copyright © 2011-2022 走看看