Accessing the ambient light sensor in iOS

前端 未结 2 521
情书的邮戳
情书的邮戳 2021-02-07 13:32

I\'m working on a project in which it is really necessary to access the ambient light sensor.

I searched a lot in Google and Stackoverflow, but couldn\'t find any usefu

2条回答
  •  你的背包
    2021-02-07 13:45

    To read the ambient light sensor data, you need to use IOHID in the IOKit framework (Reference)

    http://iphonedevwiki.net/index.php/AppleISL29003

    http://iphonedevwiki.net/index.php/IOKit.framework

提交回复
热议问题