Enable proximity sensor in call view

This commit is contained in:
Yann Diorcet 2012-12-13 09:54:34 +01:00
parent 16903f3bc5
commit 851e4d8ac1

View file

@ -201,6 +201,9 @@
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
[self orientationUpdate:[[UIDevice currentDevice] orientation]];
}
UIDevice *device = [UIDevice currentDevice];
device.proximityMonitoringEnabled = YES;
}
- (void)viewWillDisappear:(BOOL)animated{
@ -219,6 +222,9 @@
name:UIDeviceOrientationDidChangeNotification
object:nil];
}
UIDevice *device = [UIDevice currentDevice];
device.proximityMonitoringEnabled = NO;
}