如何阅读PList的Bundle版本? [英] How to read the Bundle version from PList?

查看:94
本文介绍了如何阅读PList的Bundle版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法读取应用程序的捆绑plist文件,我想拉出Bundle版本的值。

Is there a way to read the app's bundled plist file, I am wanting to pull the value for Bundle version.

推荐答案

参见获取Bundle的Info.plist数据

[[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey];

应该可以获得捆绑版本。

should get you the bundle version.

这篇关于如何阅读PList的Bundle版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆