Is iphone simulator's brightness adjustable?

≯℡__Kan透↙ 提交于 2019-12-10 12:46:07

问题


i tried to use the most of the correct answers suggested by the users to adjust the brightness of the iphone (ie [[UIScreen mainScreen]setBrightness:0.0];) but the simulator didn't change its brightness. Is iphone simulator's brightness adjustable?


回答1:


The iPhone simulator brightness is not adjustable, you have to try in a real device!




回答2:


The iPhone simulator is not a hardware simulator. It simulates some of the hardware functions but mostly it is a simulator for iOS. You will need to register a device and test to be able to confirm if your code works properly.



来源:https://stackoverflow.com/questions/10230796/is-iphone-simulators-brightness-adjustable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!