亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

IOS 獲取APP 版本號的實(shí)例詳解

 更新時間:2017年07月15日 10:02:32   作者:Hi_Aaron  
這篇文章主要介紹了IOS 獲取APP 版本號的實(shí)例詳解的相關(guān)資料,需要的朋友可以參考下

IOS 獲取APP 版本號的實(shí)例詳解

看代碼的時候看到一句,用于獲取.plist文件的版本號

labelVersion.text = [NSString stringWithFormat:@"v%@", [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString*)kCFBundleVersionKey]]; 

比較感興趣的是后面的參數(shù) kcFBundleVersionKey ,竟然是CFBundle.h已經(jīng)定于好的屬性,下面有這個屬性的注釋

const CFStringRef kCFBundleVersionKey;
  /* The version number of the bundle. For Mac OS 9 style version numbers (for example "2.5.3d5"), */
  /* clients can use CFBundleGetVersionNumber() instead of accessing this key directly since that */
  /* function will properly convert the version string into its compact integer representation. */

還有好多是kcFXXX開頭的Standard Info.plist keys 屬性,有興趣可以自己看一下CFBundle.h,研究一下它們的用法,

以上就是IOS 獲取APP 版本號的簡單實(shí)例,關(guān)于IOS 開發(fā)的文章本站還有很多,大家可以參考,感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!

相關(guān)文章

最新評論