问题
In our app, If a user covers the top area of iphone where ambient light sensors are available, i want to get the changing value of ambient light sensors. I don't want to manipulate those value as i understand Apple doesn't allow to play with hardware . My objective is to get that value of ambient light sensors. This is testing application which is checking if ambient light sensors are working correctly or not.
I spent lot of time, but couldn't find any thing yet. I tried with UIScreenBrightnessDidChangeNotification, but this is for screen brightness.
Similar kind of functionality is available in android and i could get the value of Ambient light sensors.
Any help would be highly appreciated.
回答1:
Sadly the light sensors are off limits.
来源:https://stackoverflow.com/questions/19691821/ambient-light-sensors-in-iphone