forked from bfolder/UIDevice-HardwareModel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIDevice+HardwareModel.h
More file actions
35 lines (30 loc) · 800 Bytes
/
UIDevice+HardwareModel.h
File metadata and controls
35 lines (30 loc) · 800 Bytes
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
//
// UIDevice+HardwareModel.h
//
// Created by Heiko Dreyer on 11.05.11.
// Copyright 2011 boxedfolder.com. All rights reserved.
//
#import <UIKit/UIKit.h>
enum UIHardwareModel
{
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
}; typedef NSUInteger UIHardwareModel;
@interface UIDevice (HardwareModel)
/**
* Returns exact hardware id of device instance
*/
-(UIHardwareModel)hardwareModel;
@end