View Full Version : Button to lock/unlock the screen

Dec 18, 2008, 09:05 AM

I'm in a trouble because I need to add a button to my application to lock/unlock the screen and I have no ideas. :eek:

The problem:
I need to add a button to disable every control in my application (lock the screen without turn off the application). This button has to be converted to an unlock button then. Once the unlock button is pressed everything has to became enabled again.

Any ideas?!


Dec 18, 2008, 09:48 AM
I would suggest putting up a new view that covers the current view but then traps all input, thus preventing any of the existing controls from working, and then removing this view when the unlock button is pressed.

Dec 18, 2008, 10:06 AM
Thank you,.. I'll try it!

By the way,.. do you know if exists any control like the iphone default unlock bar???