Skip to content

dginsburg/ZWDevice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZWDevice

iOS hardware model to name library. This uses simple model names, I don't try to differentiate between a wi-fi or cellular iPad for example.

Install

Use Carthage:

git "[email protected]:zachwaugh/ZWDevice.git" "master"

Use CocoaPods:

pod 'ZWDevice', :git => 'https://github.com/zachwaugh/ZWDevice.git'

Or copy ZWDevice.h and ZWDevice.m to your project.

Usage

NSString *model = ZWDevice.model;
NSLog(@"You're using a %@", model); // You're using iPhone 6

License

ZWDevice is available under the MIT license. See the LICENSE file for more info.

About

iOS hardware model to name

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 94.1%
  • Ruby 5.9%