I’m trying to find a way to time out a screen on an iPhone after pressing a button for a certain amount of time. I’m trying to do this because my app sends a command that takes some time to process and I don’t want the user to be able to press anything else or send out any other commands while this command is executing.
I’ve been searching for a few hours now and haven’t found anything useful.
When you start processing things, set the
userInteractionEnabledproperty of theUIViewyou don’t want people messing with toNO, then reset it toYESwhen the processing is done.