自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

iOS學(xué)習 獲取設(shè)備基本信息

移動開發(fā) iOS
本文介紹的是iOS學(xué)習 獲取設(shè)備基本信息,詳細又簡單的介紹了如何獲取的,我們來看內(nèi)容。

iOS學(xué)習 獲取設(shè)備基本信息是本文要介紹的內(nèi)容,有時需要獲取的iOS設(shè)備的基本信息,比如:

系統(tǒng)唯一標識

是什么設(shè)備:iPad還是iPhone

iOS版本號

系統(tǒng)名稱

這是在iPad模擬器上顯示的信息,如圖所示:

iOS學(xué)習 獲取設(shè)備基本信息

在iPad真機上顯示,如圖所示:

iOS學(xué)習 獲取設(shè)備基本信息

代碼:

  1. - (void)viewDidLoad {   
  2.     NSString *content=[[NSString alloc]   
  3.                        initWithFormat:   
  4.                        @"unique id: %@ \nlocalized model: %@ \nsystem version: %@ \nsystem name: %@ \nmodel: %@",   
  5.                        [[UIDevice currentDevice] uniqueIdentifier],   
  6.                        [[UIDevice currentDevice] localizedModel],   
  7.                        [[UIDevice currentDevice] systemVersion],   
  8.                        [[UIDevice currentDevice] systemName],   
  9.                        [[UIDevice currentDevice] model]];   
  10.     label.text=content

小結(jié):iOS學(xué)習 獲取設(shè)備基本信息的內(nèi)容介紹完了,希望本文對你有所幫助!

責任編輯:zhaolei 來源: 互聯(lián)網(wǎng)
相關(guān)推薦

2012-07-04 09:30:35

jQuery

2010-09-03 12:20:54

數(shù)據(jù)庫

2021-04-12 10:17:15

數(shù)據(jù)安全技術(shù)

2011-08-22 16:39:15

iOS內(nèi)存

2021-07-19 10:33:21

人工智能工程人工智能AI

2009-11-30 13:51:37

2014-09-22 10:55:14

2011-08-03 11:21:30

iOS程序 測試 UDID

2021-09-27 07:57:15

MEAT安全工具安全取證

2011-07-21 17:11:15

iOS 日期 間隔

2012-06-01 11:10:07

iOS基本框架圖示

2011-09-01 16:06:41

ios

2011-03-31 11:22:20

CACTI交換設(shè)備

2012-04-17 16:21:56

蘋果

2013-06-27 10:57:45

判斷當前iOS設(shè)備iOS開發(fā)移動開發(fā)

2024-12-25 14:43:22

2009-12-22 12:54:10

Linux統(tǒng)一設(shè)備

2010-11-01 17:22:44

2009-06-12 15:13:12

Hibernate學(xué)習

2011-06-15 15:55:36

PHP
點贊
收藏

51CTO技術(shù)棧公眾號