Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8270151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:29:11+00:00 2026-06-08T06:29:11+00:00

My app currently uses the camera with a custom overlay to take and save

  • 0

My app currently uses the camera with a custom overlay to take and save a picture.

Ideally, I would like to collect the following 3 paramaters at the time of photo capture as well:

  1. Precise GPS Location
  2. Compass direction
  3. Phone tilt

I’m mainly focused on getting items 1 & 2. Any ideas on how I could do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:29:15+00:00Added an answer on June 8, 2026 at 6:29 am

    few variables you should declare on .h file of your viewController

    float locLat;   //for latitude
    float locLon;   //for longitude
    float direction;  // for angle in radian
    CLLocationManager *Manager; 
    

    in .m file at viewdidload method

    Manager = [[CLLocationManager alloc] init];
    Manager.delegate = self; 
    Manager.desiredAccuracy = kCLLocationAccuracyBest; 
    Manager.distanceFilter = 1.0; 
    [Manager startUpdatingLocation];
    [Manager startUpdatingHeading];
    

    These delegate method wil be called for where you get location updates

    -(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation 
    {
        userlat = newLocation.coordinate.latitude;
        userlon = newLocation.coordinate.longitude;
    }
    

    This will give you compass values updates

    - (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading 
    {
        float direction = newHeading.trueHeading;    
    }
    

    You can use these three values at the imagepicker’s didFinishPickingMediaWithInfo delegate method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on an iPhone app which uses CoreData to save some
I'm currently developing an app which uses the built-in Camera. I call this snippet
My iPhone app currently uses Core Data to save Growth Entries created by the
My app currently uses OAuth to communicate with the Twitter API. Back in December,
An app I'm currently working on uses Entity Framework 4 which connects to a
An app uses paperclip to handle file uploads for user avatars. Paperclip currently deletes
I am currently writing an Android app that, among other things, uses text information
I need to generate a report/printout programmatically. My app currently uses FastReport to build
I'm working on an app that currently just uses a listview for a menu,
Using PHP.. I have a small app that I built that currently uses a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.