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.
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.
NSString *model = ZWDevice.model;
NSLog(@"You're using a %@", model); // You're using iPhone 6
ZWDevice is available under the MIT license. See the LICENSE file for more info.