How To Shutdown - A Guide

Discussion in 'iOS Development' started by Nickll9009, Jun 24, 2008.

  1. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    To shut down you need to use :

    reboot(RB_HALT);

    I attached the source code for a small app that opens and shutsdown the device =)

    app made by - Gojohnnyboi

    dont forget, you must include the right header first!

    Code:
    #include <sys/reboot.h>

    Attached Files:

  2. DJ McG

    DJ McG New Member

    Joined:
    Jan 15, 2008
    Messages:
    23
    Likes Received:
    0
    Actually it justs down the device. It cannot turn it on!

    Please Register or Log in to view images

    Ya silly!
  3. hakk79

    hakk79 Well-Known Member

    Joined:
    Feb 21, 2008
    Messages:
    3,239
    Likes Received:
    60
    Device:
    iPhone 4 (Black)
    If it cannot turn on, how will you get it on?
  4. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    Ok shut down = it turns off but doesn't turn on like a reboot! To turn it back on simplhy hold the sleep/wake button like you would usually do =)

Share This Page