1

I'm able to detect proximity on the iPhone SDK, but the screen blacks out whenever the proximity state is triggered.

is there a way I can prevent the proximity sensor from blacking out the screen, but still monitor a proximity sensor's state?

Thanks!

itai alter
  • 591
  • 1
  • 7
  • 22
  • See this thread: http://stackoverflow.com/questions/7051794/prevent-the-ios-proximity-sensor-from-turning-the-screen-black – Jamie Forrest Sep 08 '11 at 01:23

1 Answers1

-1

You could normally override the -(void)proximityStateChanged:(BOOL) changed method and do your thing in there, still getting the changed BOOL state.

CoolBeans
  • 20,654
  • 10
  • 86
  • 101
Elias Limneos
  • 930
  • 9
  • 13