iOS 獲取app版本號

2021-07-17 06:08:47 字數 530 閱讀 6293

來嘍來嘍,瞧一瞧看一看,一點小技巧,只用一分鐘,看不到吃虧,看不到上當~~~~~· hoho

那我們就來展示一下這個plist檔案的內容吧。(只有一段**和兩張,仔細看哦)

nslog(@"dics:%@",[[nsbundle mainbundle] infodictionary]);//獲取plist檔案內容

nslog(@"%@",[[nsbundle mainbundle] objectforinfodictionarykey:(nsstring*)kcfbundleversionkey]);//獲取版本號 「kcfbundleversionkey」 為key值

內容:

版本號:

感謝**,學以致用更感謝!

iOS 獲取app版本號 序列號 名稱

nsdictionary infodictionary nsbundle mainbundle infodictionary cfshow infodictionary 手機序列號 nsstring identifiernumber uidevice currentdevice uniqueiden...

ios獲取版本號等

nslog uniqueidentifier uidevice currentdevice uniqueidentifier nslog name uidevice currentdevice name nslog systemname uidevice currentdevice systemna...

iOS 獲取appstore 版本號

專案上線以後一般都涉及到公升級,那麼ios 如何從appstore獲取到版本號 其實很簡單 nsstring url nsstring alloc initwithformat 其中 最後一串數字就是當前app的唯一id。這個id如何得到,一下 很簡單 然後我們只需要呼叫這個 位址,就會返回當前ap...