I tried to figure out how to disable iphone lock while my application was running, but I was not successful. Do you know if this is possible? My application reads values ββfrom some equipment in real time, and it is really annoying when the display is constantly locked. I'm not talking about running the application in the background ... Thanks guys!
Disable idleTimer in UIApplication:
[UIApplication sharedApplication].idleTimerDisabled = YES;
You cannot disable the lock, the user can always lock the phone. However, you can turn off the timer (auto-lock) using:
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
Source: https://habr.com/ru/post/1500322/More articles:WebRequest random results using PowerShell - powershellThe name of the project is different from the name of the artifact - eclipseHow to make a translucent background - htmlHow to implement horizontal scrolling / scrolling between fragments? - androidCan jQuery find elements before adding them to a document? - jqueryDeploying a JAX-RS application using web.xml, Servlet 3.0 and Jersey - jerseyThe equivalent of "range" in boxplot for ggplot2 - rGood practice for using "use" in C ++ templates - c ++How to execute a function if url contains "x" in jQuery - functionAm I doing it wrong or is it a network / http error? - jsonAll Articles