【问题标题】:iPhone MonoTouch - Get Version of BundleiPhone MonoTouch - 获取捆绑包版本
【发布时间】:2016-09-21 16:23:39
【问题描述】:

在 MonoTouch 中,我们如何获取当前运行的 bundle 版本?

我最接近的猜测是:

NSBundle.MainBundle.ObjectForInfoDictionary

【问题讨论】:

    标签: iphone xamarin.ios


    【解决方案1】:

    使用以下代码获取当前版本的 bundle:

    NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleVersion").ToString();
    

    【讨论】:

    • 如何在ContentPage 中访问NSBundle?
    猜你喜欢
    • 2015-01-18
    • 2013-10-16
    • 1970-01-01
    • 2020-07-29
    • 1970-01-01
    • 2010-10-15
    • 1970-01-01
    • 1970-01-01
    • 2015-05-24
    相关资源
    最近更新 更多