Skip to content

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

License

Notifications You must be signed in to change notification settings

lefex/UIDeviceIdentifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 89.4%
  • Ruby 10.6%