Hi there,
I'm seaeching the right way to make work an ObjectC line of code to disable the Idle timer on iPhone (screen goes darker)
The original line of code (found on the web) is :
[UIApplication sharedApplication].idleTimerDisabled = YES;
My side, I can't figure out how to use this exaclty. After a bunch of tries, no way to make it works.
Here is the non working code I tried :
from objc_util import *
Switch off idle mode (ObjectC)
UIApplication = ObjCClass('UIApplication')
idleTimerDisabled = ObjCClass('idleTimerDisabled')
My_app = UIApplication.sharedApplication()
My_app.idleTimerDisabled = 'YES'
Any idea on the way to make it work ?
Thx !