How can we do it??

Discussion in 'iOS Programming' started by arnieterm, Sep 17, 2008.

  1. arnieterm macrumors regular

    Joined:
    Aug 28, 2008
    #1
    For an Iphone application, I need to work with GPS features. Basically I want to do two things:
    1. First detect whether the IPhone has GPS enabled or not
    2. Can turn ON/Off the GPS feature, if desired.

    I know that the GPS features are in Settings-->General-->Location Services. But I don't know how to access them using XCODE [objective-c]

    Any idea??
    Thanks
     
  2. aztec31 macrumors newbie

    Joined:
    Sep 15, 2008
    #2
    Have you looked at the tutorials at appl dev website? I'm sure there is examples on how to this there.
     
  3. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    This cannot be done programatically. It's a user preference: not yours. You must get the user to turn it on via the settings app.
     
  4. arnieterm thread starter macrumors regular

    Joined:
    Aug 28, 2008
    #4
    Ok then
    I can get its status whether it is On or Off will do
     
  5. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #5
    Have you looked in the documentation at all? The answer is very clearly in the CLLocationManager reference.

    Please: read the documentation before posting questions that can easily be answered with < 1 minute of reading.
     

Share This Page