2016-09-26 2 views
1

iOSデバイスのモデル番号をプログラムで取得することは可能でしょうか。私はiPhoneの背面にあるデバイスモデルを意味します。常にこの形式の「AXXXX」です。iOSデバイスのモデル番号を取得する方法(例:A1530)

+1

http://stackoverflow.com/questions/11197509/ios-how-to-get-device-make-and-model –

+1

http://stackoverflow.com/questions/26028918/ios-how-決定的なiphone-model-in-swift –

答えて

-3
let myDevice = UIDevice.currentDevice() 
let deviceModel = myDevice.model 
+4

これは私が期待するものではありません。 iPhoneまたはiPadのみを返すことができます。 – RayChen

関連する問題