2012-09-06 2 views
-1

가능한 중복 :
Is there a way of adjusting the screen brightness programmatically?
iPhone: How can we programmatically change the brightness of the screen?아이폰 화면의 밝기를 프로그램 적으로 변경합니까?

어떻게 우리가 바꿀 수있는 (감소 및 증가) 터치 이벤트에 의해 프로그래밍 방식으로 아이폰 화면의 밝기? -

+0

, 그것은 유에게 안내 할 것입니다 http://stackoverflow.com/questions/366889/change-backlight-brightness-on-iphone- 프로그래밍 방식으로 –

+0

'[[UIScreen mainScreen] setBrightness : float];' – janusbalatbat

답변

0

0의 부동 소수점 값 1은 예를 들어,이 작업을 수행하는 데 사용할 수 있습니다

[[UIScreen mainScreen] setBrightness: 0.5f]; 
내가이 링크를 통해가는 제안
관련 문제