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 proxim开发者_JAVA技巧ity sensor from blacking out the screen, but still monitor a proximity sensor's state?
Thanks!
You could normally override the -(void)proximityStateChanged:(BOOL)
changed method and do your thing in there, still getting the changed BOOL state.
精彩评论