Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 638 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 638 Bytes

DeviceUtil

For Swift please visit DeviceGuru

DeviceUtil helps identifying the exact harware type of the device. e.g. iPhone 6 or iPhone 6s.

  • Easy to use
  • Light weight

Installation

Go to http://cocoapods.org
Search for DeviceUtil lib
Copy the pod dependency and add that to your pod file. e.g.

pod 'DeviceUtil', '~> x.y'

Usage

  if ([DeviceUtil hardware] == IPHONE_5C) {
    NSLog(@"Device is iPhone 5c");
  }

Development

Want to contribute? Great!

Send the pull request :)

License

MIT