'Sleeping'에 해당되는 글 1건

  1. 2010.10.12 Prevent The iPhone From Sleeping
아이폰어플개발정보2010. 10. 12. 05:27
Prevent The iPhone From Sleeping

Code Snippet: Prevent The iPhone From Sleeping

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

The code below will prevent the iPhone from dimming its screen and ultimately going to sleep. Use it wisely as you don’t want your application becoming notorious for being a battery hog 

[UIApplication sharedApplication].idleTimerDisabled = YES;

밧데리를 엄청먹게되니 적절하게 적용
Posted by 오늘마감

댓글을 달아 주세요