typedef NS_ENUM(NSInteger,
UIDeviceOrientation) { }; typedef NS_ENUM(NSInteger, UIDeviceBatteryState) //电池状态 { }; typedef NS_ENUM(NSInteger, UIUserInterfaceIdiom) //用户界面类型 { //iOS3.2以上有效 #if __IPHONE_3_2 <= __IPHONE_OS_VERSION_MAX_ALLOWED #endif }; #define UI_USER_INTERFACE_IDIOM() ([[UIDevice currentDevice]
respondsToSelector:@selector(userInterfaceIdiom)] ? [[UIDevice
currentDevice] userInterfaceIdiom] : UIUserInterfaceIdiomPhon #define
UIDeviceOrientationIsPor #define UIDeviceOrientationIsLan NS_CLASS_AVAILABLE_IOS(2_0) @interface UIDevice : NSObject { unsigned int
batteryMonitoringEnabled unsigned int
proximityMonitoringEnabl unsigned int
expectsFaceContactInLand } + (UIDevice *)currentDevice; // 获取当前设备
@property(nonatomic,readonly,retain)
NSString
@property(nonatomic,readonly,retain)
NSString
@property(nonatomic,readonly,retain)
NSString
@property(nonatomic,readonly,retain)
NSString
@property(nonatomic,readonly,retain)
NSString
@property(nonatomic,readonly)
UIDeviceOrientation orientation;
@property(nonatomic,readonly,retain)
NSUUID
@property(nonatomic,readonly,getter=isGeneratingDeviceOrient -
(void)beginGeneratingDeviceOri -
(void)endGeneratingDeviceOrien
@property(nonatomic,getter=isBatteryMonitoringEnabl
@property(nonatomic,readonly)
UIDeviceBatteryState
@property(nonatomic,readonly)
float
@property(nonatomic,getter=isProximityMonitoringEna
@property(nonatomic,readonly)
@property(nonatomic,readonly,getter=isMultitaskingSupported) BOOL multitaskingSupported NS_AVAILABLE_IOS(4_0); // 是否支持多任务 @property(nonatomic,readonly) UIUserInterfaceIdiom userInterfaceIdiom NS_AVAILABLE_IOS(3_2); // 当前用户界面模式 - (void)playInputClick
NS_AVAILABLE_IOS(4_2); @end @protocol UIInputViewAudioFeedback @optional @property
(nonatomic,
readonly) BOOL
enableInputClicksWhenVis @end UIKIT_EXTERN NSString
*const UIDeviceOrientationDidCh UIKIT_EXTERN NSString
*const UIDeviceBatteryStateDidC UIKIT_EXTERN NSString
*const UIDeviceBatteryLevelDidC UIKIT_EXTERN NSString
*const UIDeviceProximityStateDi |
|