Coder Social home page Coder Social logo

get-ios-model's Introduction

Get-iOS-Model

Get the iOS model using the hw.machine string


Will keep this updated as new devices are available.

Updates:
10/26/2016 - corrected/added missing iPad6,4
09/12/2016 - added iPhone 7 and 7 Plus
03/30/2016 - added iPad Pro (9.7-inch) and iPhone SE
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/

get-ios-model's People

Contributors

dannycabrera avatar sven-s avatar

Watchers

Ruxandra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.