15

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?

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
iosMentalist
  • 3,066
  • 1
  • 30
  • 40

2 Answers2

26

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

Antonio MG
  • 20,382
  • 3
  • 43
  • 62
8

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.

atrljoe
  • 8,031
  • 11
  • 67
  • 110