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     );
  • 相关阅读:
    Hdu 4221 Greedy?
    Hdu 2955 Robberies
    Hdu 3309 Roll The Cube
    Hdu 2602 Bone Collector
    Hdu 2844 Coins
    Hdu 2255奔小康赚大钱
    Hdu 2120 Ice_cream's world I
    Hdu 2159 FATE
    Hdu 2102 A计划
    Hdu 2098分拆素数和
  • 原文地址:https://www.cnblogs.com/tig666666/p/5564750.html
Copyright © 2011-2022 走看看