FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
UIDevice.h
Go to the documentation of this file.
1 //
2 // UIDevice.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 10. 10. 6..
6 // Copyright 2010 youknowone.org All rights reserved.
7 //
8 
15 #import <UIKit/UIKit.h>
17 
19 typedef enum {
26 #define UIADeviceTypeIsIPhoneOrIPodMask 2
27 #define UIADeviceTypeIsIPhoneOrIPod(deviceType) ((deviceType & UIADeviceTypeIsIPhoneOrIPodMask)>>1)
29 
35 
39 @property(nonatomic,readonly) NSAVersion *systemVersionParts;
40 
41 /*
42  * @brief Get UUID for vendor for later than iOS6 or device identifier.
43  */
44 - (NSString *)uniqueToken;
45 
47 + (UIADeviceType)currentDeviceType __deprecated;
48 
49 @end
50 
56 
57 /*
58  * @brief Get MAC address as data
59  * @return 6-bytes MAC address data
60  */
61 - (NSData *)MACAddressData;
62 
63 /*
64  * @brief Get MAC address
65  * @return MAC address formed as 'xx:xx:xx:xx:xx:xx'
66  */
67 - (NSString *)MACAddress;
68 
69 @end
UIADeviceType __deprecated()
UIDevice shortcuts.
Definition: UIDevice.h:34
NSString * MACAddress()
Tool for system version.
Definition: UIDevice.h:21
UIADeviceType
Definition: UIDevice.h:19
UIDevice MAC address extension, useful to make unique identifier.
Definition: UIDevice.h:55
Definition: UIDevice.h:23
NSAVersion * systemVersionParts
System version for easy access.
Definition: UIDevice.h:39
Definition: UIDevice.h:22
NSString * uniqueToken()
Definition: UIDevice.h:20
Definition: NSAVersion.h:15