Which code could lock the screen in my apps?

I'm new in Xcode.
In my magic app,I want to lock and immediately unlock the screen,how to do the action?
Example code would be helpful.
Thanks.

First, try resetting your phone:
Press the sleep/wake button & home button at the same time, keep pressing until you see the Apple logo, then release.

Similar Messages

  • While talking to someone, I could lock the screen in iSO6 and continue the call, How could I do the same in iSO7?

    Dear Team,
    In iSO 6 while talking to some one I could lock the screen in the middle of the call and I could continue the call, this helps me in may ways
    1. I dont press the key board accidentally so that key presses wont be sent to IVR if Iam talking to a customer care or bank ect..
    2. once I lock the screen while talking to the other person, accidentally I could avoid pressing End button, as it is touch screen and an accidental skin touch ends the call?
    3. How could I reject the call if I dont want to receive the call using touch screen in iSO7 if possible?
    could you please answer these queries if am on right forum, if not let me know?
    thank you.
    Kul

    Hello Csound1
    The feature exists (and is clearly described in Numbers User Guide) in Numbers '09 but the thread is about the behavior of Numbers '08.
    Yvan KOENIG (VALLAURIS, France) mercredi 21 septembre 2011 21:59:50
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • My ipod 4g was working fine until i locked the screen but when i tried to turn it back on the screen stays black and its been 3 days. Does anyone know how i could fix this?

    my ipod 4g was working fine until i locked the screen but when i tried to turn it back on the screen stays black and its been 3 days. Does anyone know how i could fix this?

    - Charge the iPod for half an hour.  Then reset the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - if still not working, connect to your computer. If iTunes sees the iPod, restore the iPod.
    - If still problem, place the iPod in recovery mode and then try to restore the iPod.  For recovery mod see:
    iPhone and iPod touch: Unable to update or restore

  • [Solved] Gnome: Locking the screen only locks one of two monitors

    Hey guys,
    I'm using Arch for quite a while and I am really happy with it. Today I faced a problem, which no one else seems to have. At least, I wasn't able to find any infos on the net:
    When locking the screen, gnome only locks my primary monitor. I cannot only see the windows on my secondary screen, but also use them with the mouse (but not with the keyboard).
    Does anyone have an idea, how to solve this or how to find out, what could cause the problem?
    I'm using the current versions of Gnome and the nvidia drivers and only one graphics card with one dvi and one hdmi port.
    I happily provide more infos, if needed.
    Thanks for any tips!
    Last edited by WhiteKnight (2012-07-10 12:31:18)

    Hi again,
    there are to bug-reports (one at Arch's package, one upstream) for this issue, but no solution patch so far:
    https://bugs.archlinux.org/task/30547?project=1&cat[0]=2&string=gnome-screensaver
    https://bugzilla.gnome.org/show_bug.cgi?id=679441
    Since this was introduced with the current version of gnome-screensaver and since this is a crucial feature (at least for me at work) I did the following to get it working again, until there is fix:
    Download and install the previous version of gnome-screensaver (here: x86_64):
    wget "http://schlunix.org/archlinux/extra/os/x86_64/gnome-screensaver-3.4.1-1-x86_64.pkg.tar.xz"
    pacman -U gnome-screensaver-3.4.1-1-x86_64.pkg.tar.xz
    Prevent pacman from upgrading gnome-screensaver, with adding the following to /etc/pacman.conf:
    IgnorePkg = gnome-screensaver
    When there is a fix, just remove "gnome-screensaver" from "IgnorePkg" and update your system as usual.

  • Looking for an App to Lock the Screen while Playing a Movie

    I've been looking for either an app to lock the screen (not turn the screen off like the button on top of the phone) while playing a movie or a media player that will prohibit you from pressing buttons while a movie is playing. The reason I'm looking for this is my son likes to watch movies on my iPhone while we're in the grocery store, but I spend more time restarting the movie or navigating back to the iPod app and restarting the movie than he spends watching it! He likes to press the "done" button or home button which ends the movie. So an app that would prohibit that would be GREAT, but I haven't been able to find one so far. Any suggestions?

    An app will not be able to do this.
    Sorry.

  • The top button on my iphone 5 stopped working recently.. Well it works but barely at all if every. Most of the time it only locks the screen if I click on the left side of the button. Also my Camera causes a blue pixelated spot on pictures I take.

    The top button on my phone recently stopped working. Well sometimes. Majority of the time if I click it hard enough on the left side of the button it will lock the screen... Otherwise it doesnt work at all anymore. Also the camera appears to be placing a blue pixel on pictures I take. Its annoying. What should I do?

    It's completely situational. Without being able to directly compare the "scratch" on the original poster's iPhone with your iPhone, what gaamcc had happen could not be extrapolated to guess what Apple may do in your situation. It will depend entirely on what the Apple technician diagnoses after examining your iPhone. He/she may decide that any damage is strictly cosmetic and didn't have any connection with the problem you're taking your iPhone in for, or he/she may diagnose the problem as stemming from user damage. You'll just have to see when you go to the Apple Store.
    Regards.

  • What is the T-code to lock the VA01

    What is the T-code to lock the VA01

    Hi,
    For any std. SAP T-codes, while implementation or support - normally t-codes
    are alloted for the end users based upon the authorizations and roles..wherein
    authorizations like create/change/display would be alloted depended upon the user
    roles..when comibined all those corresponding authorization basis persons would
    generate the User Role which would be again consider for generating the user profiles..so, this way, any SAP Std. or User Defined T-codes would be controlled.
    Hope this helps..
    assign points if useful..
    Cheers,
    Pattan.

  • Is there a way to lock the screen?  Why did it copy all my iphone apps?

    I really would like to lock the screen so it doesn't change position if I move it a little bit. Anybody know if this is possible?
    Why the heck did it copy all of my Iphone apps onto itself even though I told it not too? Not too happy about that...
    Otherwise I think it is absolutely amazing. The touch screen is very responsive. In fact, I think it is perfect.

    bustersbuddy wrote:
    I really would like to lock the screen so it doesn't change position if I move it a little bit. Anybody know if this is possible?
    There's a little switch above the volume buttons on the right side. Flip it and try turning the screen.
    Why the heck did it copy all of my Iphone apps onto itself even though I told it not too? Not too happy about that...
    Not sure since we're not sure the processes you took to sync it. When its plugged into your computer and you are viewing it in iTunes you can go into the "Applications" tab and select which apps you want and don't want. On the main info page there is a checkbox that says sync apps automatically".
    Cheers.

  • My iphone4s does not lock the screen automatically when playing music and charging

    My iphone4s (iso5.1) does not lock the screen automatically with the condition in charging and playing music.
    System has been set to lock the screen in 1 mins.
    Everything goes fine when not in charging, the system can lock well even playing music.
    System can lock as well when all the music playing apps are closed, even when charging.
    I don't think that's my apps' problem, all my music playing apps have the same problem.
    My ipod has the exact same problem described above, I believe that's an iso system bug.

    It's not something i'm familar with but i will forward it internally for investigation. Could you please send me a PM with the IMEI of your phone and the build number? You can find these under Settings -> About phone and Settings -> About phone -> Status.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • How can I lock the screen on ipod nano 7th gen?

    How can I lock the ipod nano 7th gen? Just pressing the top button doesnt cut it as it still starts to play music or pauses or change volume with the slightest knock im in 2 minds to take it back if you cant lock it as ive only had it 4 days and already found this a huge problem!

    Hi! I really couldn't find no way to lock the screen, except pressing the top button (what only cancel any touch you do in the screen).
    That's an old discussion about (failure vs feature), but I wonder about if you are running, you can let the screen locked and still change or pause the song by pressing the buttons on the side of the iPod)
    hope I could help you

  • [solved] Lock the screen without xscreensaver

    Hey all
    I'd like to find a way to lock the screen on my laptop, similar to the way xscreensaver or gnome-screensaver do this. However, I'm not looking for a screensaver. All I want is the locking functionality. It doesnt even have to hide all my windows or anything, if it can lock all input into a terminal or so until I enter the correct password that would be fine too. Is there a way to accomplish this or will I have to figure out a way to code this by myself?
    Last edited by robrene (2010-01-11 23:01:41)

    Go suckless! slock

  • TS1702 downloaded a trainer app and it's stoped working once locking the screen

    downloaded a trainer app and it's stopped tracking and working once locking the screen .

    Hello guy1965,
    Thank you for using Apple Support Communities!
    It sounds like you are getting some unexpected behaviour from an app you downloaded from the App store. I want to recommend the troubleshooting outlined in this article named:
    iOS: Troubleshooting apps purchased from the App Store
    http://support.apple.com/kb/TS1702
    2. Check for app updates
    You can setup apps to update automatically in Settings > iTunes & App Store, but make sure that your apps are up to date:
    Open the App Store and tap Updates. If updates are available, tap Update All.
    If  prompted, enter your iTunes Store account information. App Store will then download and install the app updates.
    Note: Some apps may require a Wi-Fi connection to update.
    3. Install another app from the App Store
    If none of your user-installed apps will launch, there could be an issue with Apple ID authorization. Download and install an app that isn't already installed on your device to reset this information. You can also remove an app from your iOS device and download it again from the App Store or sync the app from your computer.Note: If you have installed apps using multiple Apple ID accounts, you may need to perform this step for each account.
    4. Restart the app
    If the issue affects only a single app, try closing just that app.
    5. Restart your device
    Turn the device off and on.
    6. Reinstall the affected app
    Remove the app from your device and reinstall it:
    Tap and hold any app icon on the Home Screen until the icons start to wiggle and show a small "x" in the top-right corner of the app.
    Tap the "x" in the corner of the app you want to delete.
    Tap Delete to remove the app and all of its data from your device.
    Press the Home button.
    Go to the App Store.
    Search for the app and then download it again.
    Note: If it is a paid app, ensure you are using the iTunes account you purchased the app with originally. If it is not, you may be asked to purchase the app again. Learn more about downloading previously purchased items.
    7. If the issue is still unresolved, contact the developer
    If you continue to experience the issue, contact the developer of the app for further assistance:
    Find the app in the App Store.
    Open the app's page, tap Reviews, and then App Support.
    All the very best,
    Sterling

  • Can I lock the screen on my iPod nano

    Can I lock the screen on my iPod nano

    if it is a 7th gen (newest one) you can press the lock button on top left of pod to turn the screen blank... sadly there is no password lock function. However on settings, if you are used to an iPod touch swipe lock screen, you can set a clock as a lock screen, which can be useful. hope this helps

  • My Mac Pro "mid2010" locks the screen/ screen blacks out every some seconds.

    This started last week with the installation of Mavericks. What can I do? Settings in Screensaver etc. are "normal", i.e. I did not change anything. The screen goes black totally randomly every 5 to 10 seconds. I usually have "require password to unlock screen". So it asks me to enter the password every time. That means it locks the screen ? I unchecked this option to be able to at least get some work done. I can wake the machine up by hitting any keys. There are several people working on this machine. Some of us use the Remote Desktop (RD) environment "vnc://..." but stopped using it, to make sure the problem is not related to the use of RD. The problem is still there. Does anyone have an idea. I cannot find any useful hints on this, nor was I able to find a similar problem.
    Cheers,
    Eric

    Part #2
    How to make your own bootable OS X 10.9 Mavericks USB install drive
    Apple has changed things in 10.9, but making a recovery drive is still possible.
    by Andrew Cunningham - Oct 23 2013, 8:19am CDT
    OS X  Flickr user Prime Number   
    When Apple released OS X 10.7 two years ago, it stopped selling operating system DVDs in its stores, stopped shipping recovery disks with new Macs, and switched to downloadable installers for OS X upgrades.
    These download-only installers have actually worked pretty well—I’ve never had an issue downloading the software from the Mac App Store or restoring a Mac using the Internet Recovery feature when something went south.
    That said, it’s still nice to have an install disk handy for those cases when you don’t have a connection, when your connection is slow, or when you just have a whole bunch of Macs and don’t want to have to download the installer on each and every one of them.
    The good news is, as with Lion and Mountain Lion, it’s possible to create a local USB installer for Mavericks. The bad news is that it wasn’t as simple as it was before—Apple has changed the way the installer works, and making an install disk manually is more difficult than it used to be. Before we get started, here’s what you’ll need:
    An 8GB or larger USB flash drive, or an 8GB or larger partition on some other kind of external drive
    The OS X 10.9 Mavericks installer from the Mac App Store in your Applications folder. The installer will delete itself when you install the operating system, but it can be re-downloaded if necessary.
    The latest beta of the Lion Diskmaker app, available here (as of this writing, version 3 beta 3 is the most recent). This app is free to download, but the creator accepts donations if you want to support his efforts.
    An administrator account on the Mac you're using to create the disk.
    The easy way
    Enlarge / Lion Diskmaker remains the easiest, most user-friendly way to get this done.
    Andrew Cunningham
    Once you've obtained all of the necessary materials, unzip the Lion Diskmaker app and run it. The app can currently make installers for OS X 10.7, 10.8, and 10.9, but we're only interested in Mavericks today.
    Lion Diskmaker has actually been around since the days of OS X 10.7 (which explains the name), but it's more important now because Apple has made alterations to the installer that prevent the old Disk Utility method from working.
    It's still possible to create a disk manually using a Terminal command (which we'll go into momentarily), but Lion Diskmaker presents an easy GUI-based way to do it that is less intimidating to most people.
    One note of caution: Lion Diskmaker no longer supports creating OS X install DVDs. This isn't going to be a problem for any Mac that can actually install Mavericks, but if you'd rather use a disc than a USB drive you're apparently out of luck.
    Anyway, select OS X 10.9 in Lion Diskmaker and the app should automatically find the copy you've downloaded to your Applications folder, but clicking "Use another copy" will let you browse the drive if you happen to have moved it.
    It will then ask you where you want to copy the files—click "An 8GB USB thumb drive" if you have a single drive to use, or "Another kind of disk" to use a partition on a larger drive or some other kind of external drive.
    Choose your disk (or partition) from the list that appears, verify that you'd like to have the disk (or partition) erased, and then wait for the files to copy over. The process is outlined in screenshots below.
    The only-slightly-less-easy way
    If you don't want to use Lion Diskmaker for some reason, poster tywebb13 on the MacRumors forums has your hookup. Assuming that you have the OS X Mavericks installer in your Applications folder and you have a Mac OS X Extended (Journaled)-formatted volume named "Untitled" mounted on the system, you can create a Mavericks install drive by typing the following command into the Terminal.
    sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
    The command will erase the disk and copy the install files over. Give it some time, and your volume will soon be loaded up with not just the OS X installer, but also an external recovery partition that may come in handy if your hard drive dies and you're away from an Internet connection.
    Whichever method you use, you should be able to boot from your new USB drive either by changing the default Startup Disk in System Preferences or by holding down the Option key at boot and selecting the drive. Once booted, you'll be able to install or upgrade Mavericks as you normally would.

  • How do you lock the screen on iphone 4?

    How do you lock the screen on iphone 4 while on a call? I mute calls, activate face time and I have even called someone by accident during a call. I know there has to be a way to fix this. Please HELP!

    It locks automatically when you hold it to your head.
    If it fails to do this, then remove the case and see if it solves it.
    If it does not, then do the basics - restart, reset, restore.
    If that does not solve it, then make an appointment at the genius bar.

Maybe you are looking for

  • Major problems trying to install softward

    Hello, I'm am getting an alert A12E1 when I try and install the Adobe Application Manager. I am running Mac OS Mountain Lion, I have restarted my computer. I just purchased a copy of the Creative Cloud, which I need asap, and I am unable to install i

  • Error in attach PDF file into email

    Hi, currently i have problem in sending out email as i try to go through the <b>Offline Interactive PDF Form Using E-Mail</b> and also <b>Uploading and Downloading Files in Web Dynpro Java</b> and then i manage to get the file that i want to upload i

  • 0 PLS-00707: unsupported construct or internal error [2603]

    I have several packages and their bodies which can be correctly imported into XE. However, when I recompile the body of some of the packages I get the PLS-00707... error. If I drop the body and then issue a "create or replace package body ..." with t

  • Why does it take forever to load mail messages once clicked on on the left

    My mail seems to have trouble loading in the view side of the mail window.  this happens with all the new mail old mail is usually opened immediately.  The New ones just keep showing a loadind icon in the window.  Does anyone know how to fix this?

  • Multiple Phone Sync

    I started a thread in the general Ovi Suite section that got no views. I have a couple different Nokia phones that I sync to my computer (N95 and N76). I am afraid that I do not get a full sync - after one phone is synced, the second cannot add to th