IOS APP 獲取版本號等

2021-07-24 18:50:08 字數 1186 閱讀 2449



nsdictionary *infodictionary = [[nsbundle mainbundle] infodictionary]; 

cfshow(infodictionary); 

//手機序列號 

nsstring* identifiernumber = [[uidevice currentdevice] uniqueidentifier]; 

nslog(@"手機序列號:

%@",identifiernumber); 

//手機別名: 使用者定義的名稱 

nsstring* userphonename = [[uidevice currentdevice] name]; 

nslog(@"手機別名: %@", userphonename); 

//裝置名稱 

nsstring* devicename = [[uidevice currentdevice] systemname]; 

nslog(@"裝置名稱:

%@",devicename ); 

//手機系統版本 

nsstring* phoneversion = [[uidevice currentdevice] systemversion]; 

nslog(@"手機系統版本: %@", phoneversion); 

//手機型號 

nsstring* phonemodel = [[uidevice currentdevice] model]; 

nslog(@"手機型號:

%@",phonemodel ); 

//地方型號  (國際化區域名稱) 

nsstring* localphonemodel = [[uidevice currentdevice] localizedmodel]; 

nslog(@"國際化區域名稱:

%@",localphonemodel ); 

nsdictionary *infodictionary = [[nsbundle mainbundle] infodictionary]; 

// 當前應用名稱 

nslog(@"當前應用名稱:

// 當前應用軟體版本  比如:1.0.1 

// 當前應用版本號碼   int型別 

nslog(@"當前應用版本號碼:

ios獲取版本號等

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

關於iOS App的版本號

version和build的區別 一種是cfbundleversion bundle version 也就是我們看到的version,另一種是cfbundleshortversionstring bundle version string,short 也就是我們看到的build。build最好是整數...

獲取程式版本號

取程序版本號碼 vc 2008 控制台程式的版本資源需要手動插入 include stdafx.h include pragma comment lib,version.lib dword getver word wver1,word wver2,word wver3,word wver4 int ...