Skip to content

snailium/Get-iOS-Model

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Get-iOS-Model

Get the iOS model using the hw.machine string


Will keep this updated as new devices are available.

Updates:
01/19/2016 - added iPad Pro
09/28/2015 - added iPhone 6s & iPhone 6s Plus
07/15/2015 - added iPod 6th Generation
10/20/2014 - added iPad Air 2 & iPad mini 3
09/17/2014 - added iPhone 6 and 6 Plus
01/08/2014 - added iPad Mini Retina and iPad Air.


Sample

Console.WriteLine(new iOSHardware().GetModel("iPhone5,3"));

Result: "iPhone 5C GSM"


Get device hardware string using Xamarin.iOS

Console.WriteLine(Xamarin.iOS.DeviceHardware.Version);
Console.WriteLine(new iOSHardware().GetModel(Xamarin.iOS.DeviceHardware.Version));

####Run Sample: http://executify.com/10027/

About

Get the iOS model using the hw.machine string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%