Controlling Wireless Radio's Etc. From A iPhone Application

Discussion in 'iOS Programming' started by edgett, Jun 11, 2009.

  1. edgett macrumors newbie

    Joined:
    Jun 11, 2009
    Location:
    Chandler, AZ
    #1
    I am prototyping a iPhone application.

    One of the things I would like to do is enable / disable the WiFi network or Bluetooth from within the application. Is it possible to control the hardware from the iPhone app?

    I have the Beginning iPhone Development (Mark LaMarche) book to help me get started with iPhone development. However, I didn't see anything about controlling the hardware within that book.

    If this is possible, any example code would be great.
     
  2. jnic macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
  3. boyplunder macrumors regular

    boyplunder

    Joined:
    Sep 8, 2008
    Location:
    UK
    #3
    Actually, it is possible to turn Bluetooth on or off in an app, only I found that Apple forbids it. You can't do it with the frameworks supplied, but can with private frameworks, but Apple's unlikely to approve it.

    I looked down this route when I got fed up having to turn it on and off to get in my car.
     
  4. edgett thread starter macrumors newbie

    Joined:
    Jun 11, 2009
    Location:
    Chandler, AZ
    #4
    What about automatically pulling up the settings page where you can enable and disable it?
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    As jnic would say:
     

Share This Page