Is it possible to programmatically change the screen lock timeout period for an iPhone
?
Whilst I'm not new to programming in general I am new to iOS/Xcode
programming so I've checked out 'Developer Help', googled & searched SO but not found any clues as to where to go further.
As far as the app goes, it is for my personal use, not for publishing via App Store
.
The general idea is that rather than manually going into Settings/Display & Brightness/Auto-Lock to change the timeout from the normal 30 seconds to 2 minutes I will have a simple app which will toggle between the two.
I do not want to jailbreak my phone so that is not an option.