/UIDeviceIdentifier

UIDeviceHardware is a class which allows querying of the current users device, and returns a human formatted string.

Primary LanguageObjective-CMIT LicenseMIT

Description

UIDeviceHardware is a class originally created in a gist by Jaybles. It allows querying of the current users device, and returns a human formatted string.

It is written as a class method, to allow use without direct instantiation.

Usage

To use this class, copy the class header files, or include the class in your CocoaPods Podfile. Then when you are ready to query the device, simply import the header file and use:

Podfile inclusion

pod 'UIDeviceIdentifier', :git => 'https://github.com/squarefrog/UIDeviceIdentifier.git'

Code usage

#import <UIDeviceIdentifier/UIDeviceHardware.h>

@implementation MyClass

- (void)myMethod
{

    NSString *platformString = [UIDeviceHardware platformString];
    NSString *currentDevice = [UIDeviceHardware platformString];
}

@end

Licence

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