IPhone SDK Screen Lock

Hi, I am building an application, but I don;t want the screen lock to kick in at all, I have seen this in a couple of apps in the app store like the a digital alarm clock that shows the time all the time. Basically I want my screen to stay on all the time, does anyone know how this can be achieved?

Hello,
Setting idleTimerDisabled = YES does NOT work under os3.0. If the user presses the lock button on top and the device is not plugged in it falls asleep, and NSTimers stop firing. Is there a work around for this ?
thanks

Similar Messages

  • IPhone 6 screen locked up while on call

    My iPhone 6 screen locked up while I was on a call - the screen went black and all buttons/touchscreen was unresponsive. I had just upgraded to iOS 8.1 earlier this morning and placed a call. I was put on hold and wanted to hang up when I noticed my screen was black. No buttons would work, so I took it out of my case and tried again with no luck. I finally got it to shut down from holding the Home & On/Off buttons simultaneously. Anyone else have this problem?

    I had a similar problem.  I will be talking on the phone and next thing I know the screen is black & unresponsive.  The apple logo comes up and than the call continues.  I am not sure what is causing this but it has happened several times to me AND has also happened to a friend of mine.
    Any feedback would be greatly appreciated.
    iPhone 6, iOS 8.1

  • Reset my iphone 5 screen lock

    I forgot my iphone 5 screen lock password, please help me reeset.

    Hi i upgrade my iphone 5 with ios7
    after i done all the new lock screen it came only with the english keyboard ,
    and My passcode was in Greek !!
    Any idea on how can i change the keayboard in greek to put my passcode ??
    Thank you

  • Forgot iphone 4 screen lock number how to unlock it  ?

    forgot iphone 4 screen lock number how to unlock it  ?

    The following has instructions: iOS: Forgot passcode or device disabled

  • Iphone 4 screen locked

    my iphone's screen is locked, it says that is locked, my iphone is like in a mode. Sometimes screen unlocks and when i unlock the screen with my password , screen locks and goes black again. I turn on the voice, that voice says that my screen is locked!!!

    DPW5 wrote:
    I receive an unknown error message (1) and states cannot restore phone.
    This usually indicates a Hardware issue.
    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Also try a differnt USB Cable and / or Port.
    Try to Restore a couple of more times... If no joy... looks like a trip to the Apple Store to have the iDevice evaluated.

  • HT4061 iphone 3GS screen locked, slide bar does not work

    Iphone 3GS. The slide bar does not work, ie the screen lock does not unlock. I have tried to reset (power and home buttons) and also to restore my iphone several times using iTunes without any success. Any suggestions? My son uses the phone now for games, so it has no carrier.

    A reset can be done by tapping and holding the Home button and the Sleep/On/Off buttons at the same time for approximately 10-15 seconds, until the Apple logo reappears.
    Stedman

  • Iphone 4s screen locked

    My iPhone 4s screen is locked in portrait mode, even though the screen lock is "off". I tried to reset the phone by holding the "off" and "home" keys similtaneously, but this did not work. The screen froze after installing WhatsApp. Any suggestions?  Thank you!

    There are instructions on this page for how to reset a device when it's disabled (or not disabled but you can't remember the passcode) : http://support.apple.com/kb/HT1212 - you should then be able to restore/resync your content to it.

  • Lost iPhone with screen lock.

    I lost my iPhone 5 with screen lock. Im 99% sure that I had set screenlock security & that if password was punched in wrong 10 times it would erase all data. What are the chances?. Should I still be concern about changing my app paswords such as (Facebook, IG, Snapchat, Yahoo, GMail, etc.) My wireless network said I can erase all data on my phone using iCloud, but not sure how...This is the first time i lose my iPhone. Need advice.

    If you lost the iPhone without having turned on Find My Phone, the iPhone can be cleansed and used.  If Find My Phone was on, then it cannot be broken.  Tha said it is still a very good idea to change your passwords associated with accounts on your iPhone.

  • IPhone 6 screen locked on zoom how can I reduce it?

    iPhone 6 display locked on zoom & cannot reduce it. Can anyone help?

    How can I turn off Zoom on the iPhone (iOS 4)?

  • IPhone Home Screen Lock Display

    Hey guys can someone tell me how can I do this thing on my iphone4? I just saw her lock screen looked like this. When someone texted him the name and message pops up along with the time and the senders picture on the side. Please please please tell me?

    I've never seen this before.  I don't believe there is a legitimate way to do that on the iPhone.

  • IPhone 5 screen locking without pressing the lock button

    Recently my iPhone screen has started locking without pressing the button. It is like it is stuck but the button isn't even pushed down. It does it so often that it is hard to use my phone because it keeps locking the screen and then trying to turn off the phone. It wasn't so bad at first and I used the accessibility feature to lock my screen in case something was wrong with button. However, my friend was looking at my phone and pressed the lock button which made it start going crazy again. I can't turn my phone off either because it will automatically turn back on because the button is going off. It is almost like there is a ghost pressing my lock button constantly. That is the best way to describe it. I'm not sure if I am under warranty or not, I got the phone from Sprint in the beginning of June.

    Make an appointment at the genius bar and have it looked at. It sounds like the power button is failing.

  • Iphone message screen locked on last message

    I received a message this morning with a link to blip-me.com and after connecting to the link I went back to my message screen and it was locked. I tried resetting several times. Everything on the phone works fine except my message screen is locked on that last message. Any suggestions?

    Try double tapping the home button, find the messages app, then press and hold the app till the Red minus appears.  Tap the minus sign to close the app, then retry the app.  If that fails, basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these steps in order until the issue is resolved.

  • My iphone 5 screen lock button dont work

    my lock screen button works when it wonts too who do i send it too for  repair apple or my network provider

    See: https://ssl.apple.com/support/iphone5-sleepwakebutton/

  • When my screen locks while streaming music or podcast, the radio or podcast stops.

    When my iPhone 5s screen locks while I am streaming a podcast or live radio, it pauses. What do I need to do to stop this short of adjusting the screen to never lock? This is hugely disruptive while running.

    Visit the Apple Store and request for a replacement. Cheers!

  • IPhone black screen does not show anything, but I can hear that the device works. I hear the lock open the screen and hear the iPod but the screen remains black

    IPhone black screen does not show anything, but I can hear that the device works. I hear the lock open the screen and hear the iPod but the screen remains black!!

    It's happened to me before as well. Try holding both lock(top right) and home buttons simultaneously until u see a slight flash of wight then just reboot it normally. If that doesn't work try restoring your device from itunes

Maybe you are looking for