Skip to content

Add functionality to UIDevice to distinguish between platforms like iPod touch 1G and 2G and iPhone

License

Notifications You must be signed in to change notification settings

yusuga/UIDevice-Hardware

 
 

Repository files navigation

UIDevice-Hardware

UIDevicePlatform

typedef enum {
    UIDeviceIFPGA,
    
    // iPhone

    UIDeviceIPhone1G,
    UIDeviceIPhone3G,
    UIDeviceIPhone3GS,
    UIDeviceIPhone4,
    UIDeviceIPhone4S,
    UIDeviceIPhone5,
    UIDeviceIPhone5C,
    UIDeviceIPhone5S,

    // iPod

    UIDeviceIPod1G,
    UIDeviceIPod2G,
    UIDeviceIPod3G,
    UIDeviceIPod4G,
    UIDeviceIPod5G,

    // iPad

    UIDeviceIPad1G,
    UIDeviceIPad2G,
    UIDeviceIPad3G,
    UIDeviceIPad4G,

    // iPad Air

    UIDeviceIPadAir1G,

    // iPad Mini

    UIDeviceIPadMini1G,
    UIDeviceIPadMini2G,

    // Apple TV

    UIDeviceAppleTV2,
    UIDeviceAppleTV3,        

    // Simulator

    UIDeviceSimulator,
    UIDeviceSimulatoriPhone,
    UIDeviceSimulatoriPad,

    // Unknown

    UIDeviceUnknowniPhone,
    UIDeviceUnknowniPod,
    UIDeviceUnknowniPad,
    UIDeviceUnknownAppleTV,
    UIDeviceUnknown,    
} UIDevicePlatform;

License

Erica Sadun, http://ericasadun.com
iPhone Developer's Cookbook, 6.x Edition
BSD License, Use at your own risk

About

Add functionality to UIDevice to distinguish between platforms like iPod touch 1G and 2G and iPhone

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 100.0%