Moshe
Moshe

Reputation: 58087

Is there way to keep the iPad screen on?

Is there a way to prevent the iPad from sleeping while my app runs? I am making a kiosk app that needs to not auto sleep.

Upvotes: 2

Views: 1652

Answers (2)

igul222
igul222

Reputation: 8637

[[UIApplication sharedApplication] setIdleTimerDisabled:YES]

Upvotes: 9

Lily Ballard
Lily Ballard

Reputation: 185681

You want the UIApplication.idleTimerDisabled property.

Upvotes: 2

Related Questions