Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用用户建议的大多数正确答案来调整 iphone 的亮度(即[[UIScreen mainScreen]setBrightness:0.0];),但模拟器没有改变它的亮度。iphone模拟器的亮度可调吗?
[[UIScreen mainScreen]setBrightness:0.0];
iPhone模拟器亮度不可调,必须在真机上试试!
iPhone 模拟器不是硬件模拟器。它模拟了一些硬件功能,但主要是 iOS 模拟器。您需要注册一个设备并进行测试,以确认您的代码是否正常工作。