Latest 1.1.4
Homepage https://github.com/squarefrog/UIDeviceIdentifier
License MIT
Platforms ios , tvos
Authors ,

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.

Latest podspec

{
    "name": "UIDeviceIdentifier",
    "version": "1.1.4",
    "summary": "UIDeviceHardware is a class which allows querying of the current users device, and returns a human formatted string.",
    "homepage": "https://github.com/squarefrog/UIDeviceIdentifier",
    "license": "MIT",
    "authors": [
        "Paul Williamson",
        "Jaybles"
    ],
    "source": {
        "git": "https://github.com/squarefrog/UIDeviceIdentifier.git",
        "tag": "1.1.4"
    },
    "platforms": {
        "ios": null,
        "tvos": null
    },
    "source_files": [
        "Classes",
        "UIDeviceIdentifier/**/*.{h,m}"
    ],
    "public_header_files": "UIDeviceIdentifier/**/*.h"
}

Pin It on Pinterest

Share This