iPhone MonoTouch - Get Version of Bundle

后端 未结 1 1115
耶瑟儿~
耶瑟儿~ 2021-02-12 13:26

In MonoTouch, how can we get the version of the bundle currently running?

My closest guess is somewhere in :

NSBundle.MainBundle.ObjectForInfoDictionary
         


        
相关标签:
1条回答
  • 2021-02-12 14:12

    Use the following code to get the current version of the bundle:

    NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleVersion").ToString();
    
    0 讨论(0)
提交回复
热议问题