摘要: [[UIDevice currentDevice] setProximityMonitoringEnabled:YES];[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sensorStateChange:) name:@"UIDeviceProximityStateDidChangeNotification" object:nil];-(void)sensorStateChange:(NSNotificationCenter *)notification;{if ([[UI 阅读全文
posted @ 2012-01-04 13:27 痴人指路 阅读(232) 评论(0) 推荐(0) 编辑