摘要:
[[UIDevice currentDevice] setProximityMonitoringEnabled:YES];[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sensorStateChange:) name:@"UIDeviceProximityStateDidChangeNotification" object:nil];-(void)sensorStateChange:(NSNotificationCenter *)notification;{if ([[UI 阅读全文