forked from bfolder/UIDevice-HardwareModel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUIDevice+HardwareModel.h
48 lines (40 loc) · 1.08 KB
/
UIDevice+HardwareModel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// UIDevice+HardwareModel.h
//
// Created by Heiko Dreyer on 11.05.11.
// Copyright 2011 boxedfolder.com. All rights reserved.
//
#import <UIKit/UIKit.h>
enum UIHardwareModel
{
UIHardwareModelUnknow = 0,
UIHardwareModelSimulator = 1,
UIHardwareModeliPhone1G = 2,
UIHardwareModeliPhone3G = 3,
UIHardwareModeliPhone3GS = 4,
UIHardwareModeliPhone4 = 5,
UIHardwareModeliPhone4Verizon = 6,
UIHardwareModeliPodTouch1G = 7,
UIHardwareModeliPodTouch2G = 8,
UIHardwareModeliPodTouch3G = 9,
UIHardwareModeliPodTouch4G = 10,
UIHardwareModeliPad = 11,
UIHardwareModeliPad2Wifi = 12,
UIHardwareModeliPad2GSM = 13,
UIHardwareModeliPad2CDMA = 14,
UIHardwareModeliPhone4S = 15,
UIHardwareModeliPad3Wifi = 16,
UIHardwareModeliPad3GSM = 17,
UIHardwareModeliPad3CDMA = 18,
UIHardwareModeliPad4Wifi,
UIHardwareModeliPad4GSM,
UIHardwareModeliPad4CDMA,
UIHardwareModeliPhone5,
UIHardwareModeliPodTouch5G
}; typedef NSUInteger UIHardwareModel;
@interface UIDevice (HardwareModel)
/**
* Returns exact hardware id of device instance
*/
-(UIHardwareModel)hardwareModel;
@end