IOS开发: NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]

11

NSBundle* mainBundle = [NSBundle mainBundle];
NSDictionary* infoDictionary =  [mainBundle infoDictionary];
   NSLog(@"infoDictionary:%@ ",  infoDictionary );

2012-01-11 10:53:46.765 Demo0109[1389:f503] infoDictionary:{

    CFBundleDevelopmentRegion = English;

    CFBundleDisplayName = Demo0109;

    CFBundleExecutable = Demo0109;

    CFBundleExecutablePath = "/Users/sanpintian/Library/Application Support/iPhone Simulator/4.3.2/Applications/C61C463E-41DE-46B5-9DBB-74AE189BD729/Demo0109.app/Demo0109";

    CFBundleIconFile = "icon.png";

    CFBundleIconFiles =     (

        "icon.png",

        "icon@2x.png",

        "icon-72.png"

    );

    CFBundleIdentifier = "com.jsq.Demo0109";

    CFBundleInfoDictionaryVersion = "6.0";

    CFBundleInfoPlistURL = "Info.plist -- file://localhost/Users/sanpintian/Library/Application%20Support/iPhone%20Simulator/4.3.2/Applications/C61C463E-41DE-46B5-9DBB-74AE189BD729/Demo0109.app/";

    CFBundleName = Demo0109;

    CFBundlePackageType = APPL;

    CFBundleSignature = "????";

    CFBundleSupportedPlatforms =     (

        iPhoneSimulator

    );

    CFBundleVersion = "1.0";

    DTPlatformName = iphonesimulator;

    DTSDKName = "iphonesimulator4.3";

    LSRequiresIPhoneOS = 1;

    NSBundleInitialPath = "/Users/sanpintian/Library/Application Support/iPhone Simulator/4.3.2/Applications/C61C463E-41DE-46B5-9DBB-74AE189BD729/Demo0109.app";

    NSBundleResolvedPath = "/Users/sanpintian/Library/Application Support/iPhone Simulator/4.3.2/Applications/C61C463E-41DE-46B5-9DBB-74AE189BD729/Demo0109.app";

    UIDeviceFamily =     (

        1,

        2

    );

    UISupportedInterfaceOrientations =     (

        UIInterfaceOrientationPortrait

    );

}
 infoDictionary 包含了项目中几乎所有的基本信息,SDK版本,项目名称等。



可以根据手机沙盒存储的app版本信息  设置是否需要显示引导页




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值