ios獲取裝置資訊

2021-07-09 17:41:04 字數 589 閱讀 3942

我們寫專案的時候有時候可能會需要獲取到使用者的裝置資訊 下面用**簡要描述一下 

uidevice *currentdevice = [uidevice currentdevice];

nsstring *strname = currentdevice.name; //裝置名稱

nsstring *strmodel = currentdevice.model; //裝置類別

nsstring *strlocalizedmodel = currentdevice.localizedmodel; //裝置本地化版本

nsstring *strsystemname = currentdevice.systemname; //裝置執行的系統

nsstring *strsystemversion = currentdevice.systemversion; //當前系統版本

nsstring *struuidstring = currentdevice.identifierforvendor.uuidstring; //系統識別碼

主要是使用uidevice的這個類

獲取iOS裝置資訊

鑌哥就直接寫 了 獲取手機資訊 應用程式的名稱和版本號等資訊都儲存在mainbundle的乙個字典中,用下面 可以取出來 nsdictionary infodict nsbundle mainbundle infodictionary nsstring versionnum infodict obj...

iOS 獲取裝置資訊

ios 獲取裝置資訊 獲取裝置資訊,不囉嗦,直接上 uidevice idfa add adsupport.framework define kdeviceidfa asidentifiermanager sharedmanager advertisingidentifier uuidstring ...

獲取iOS裝置資訊

獲取ios裝置資訊 2014 12 04 0 收藏 有時候做專案是需要獲取手機的相關資訊,好讓使用者知道自己的使用情況 鑌哥就直接寫 了 獲取手機資訊 應用程式的名稱和版本號等資訊都儲存在mainbundle的乙個字典中,用下面 可以取出來 nsdictionary infodict nsbundl...