Button to lock/unlock the screen

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

  1. macrumors newbie

    Joined:
    Nov 2, 2008
    #1
    Hello!

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

    Thanks!!!
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    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. thread starter macrumors newbie

    Joined:
    Nov 2, 2008
    #3
    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