Button to lock/unlock the screen

Discussion in 'iOS Programming' started by powwowath, Dec 18, 2008.

  1. powwowath macrumors newbie

    Nov 2, 2008

    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?!

  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    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.
  3. powwowath thread starter macrumors newbie

    Nov 2, 2008
    Thank you,.. I'll try it!

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

Share This Page