开发者

Proximity Monitoring on the iPhone without blacking out the screen?

开发者 https://www.devze.com 2023-01-01 21:10 出处:网络
I\'m able to detect proximity on the iPhone SDK, but the screen blacks out whenever the proximity state is triggered.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号