IOS开发: NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]
2016-05-06 14:12
856 查看
11
可以根据手机沙盒存储的app版本信息 设置是否需要显示引导页
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版本信息 设置是否需要显示引导页
相关文章推荐
- 如何用 Instruments 检测 iOS 每个进程的电量消耗?
- iOS滑动解锁、滑动获取验证码效果的实现代码
- iOS自动处理键盘事件的第三方库:IQKeyboardManager
- iOS的几种后台机制
- IOS CopyPNGFile 异常问题解决
- iOS开发系列-动画绘图CALayer
- iOS 关于已配对设备重新检测连接问题
- iOS开发系列--打造自己的“美图秀秀”
- iOS开发-进阶:语言国际化及代码切换语言
- iOS开发_修改系统cell的图像会变模糊的处理
- iOS开发系列--触摸事件、手势识别、摇晃事件、耳机线控
- IOS应用内存释放机制
- iOS 日期转成几年月日时分秒前
- iOS 日期格式转几年几月几日几时几分几秒前
- iOS---使用MJExtension 归档
- iOS端播放VR图片
- iOS开发系列--视图切换
- iOS开发系列--无限循环的图片浏览器
- iOS socket编程
- iOS开发系列--IOS程序开发概览