How to display the current project version of my App to the user?

后端 未结 6 1509
遥遥无期
遥遥无期 2020-12-01 13:01

I would like to add the current version into the \"about\" section of my app. As seen in this attached screenshot Apple offers versioning.

How do you display these s

6条回答
  •  心在旅途
    2020-12-01 13:10

    For the lazy here is the swift version :

    NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString")!
    

提交回复
热议问题