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 6322639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:22:14+00:00 2026-05-24T16:22:14+00:00

I want to make an app that shows where is a location on screen.

  • 0

I want to make an app that shows where is a location on screen.

I’m going to show over camera image a text indicating if user is looking to it. For example, if user is looking for a town that is in north of his location it will see a text indicating it when he looks to the north.

I also want to show distance between user and location.

Knowing user location, I have to show it user is looking to another location. For example, I’m in New York and I want to know where is Statue of Liberty. I have to know its latitude and longitude to show it on screen when user looks at.

Is there any SDK to do it?

Do you need more details? I’m sorry, but I don’t speak English very well.

  • 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-05-24T16:22:15+00:00Added an answer on May 24, 2026 at 4:22 pm

    Steps should be:

    1. Get lat and long and set them to two labels, self.label1 and self.label2

    2. Create an empty view with transparentColor background.

    3. Add your labels with addSubview: to the view in step 2.

    4. Set cameraOverlayView to the view created in step 2.

    5. Present your picker.

    In code:

    Define in your .h: CLLocationManager *locationManager and implement delegate: <CLLocationManagerDelegate>

    - (void)viewDidLoad {
    [super viewDidLoad];
    locationManager = [[CLLocationManager alloc] init];
    locationManager.delegate = self;
    locationManager.distanceFilter = kCLDistanceFilterNone; //How often do you want to update your location, this sets every small change should fire an update.
    locationManager.desiredAccuracy = kCLLocationAccuracyBest;
    [locationManager startUpdatingLocation];
    }
    

    Then implement:

    - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
    
      NSString *lat = [NSString stringWithFormat:@"%d", newLocation.coordinate.latitude];
      self.label1.text = lat;
    
      NSString *long = [NSString stringWithFormat:@"%d", newLocation.coordinate.longitude];
      self.label2.text = long;
    }
    

    Then wherever you want to present your camera with coords:

    UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    
    picker.delegate = self;
    
    picker.sourceType =  UIImagePickerControllerSourceTypeCamera;
    
    emptyView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; //This frame will make it fullscreen...
    
    emptyView.backgroundColor = [UIColor transparentColor];
    [emptyView setAlpha:1.0]; //I think it is not necessary,  but it wont hurt to add this line.
    
    self.label1.frame = CGRectMake(100, 100, self.label1.frame.size.width, self.label1.frame.size.height); //Here you can specify the position in this case 100x 100y of your label1 preserving the width and height.
    [emptyView addSubview:self.label1];
    //Repeat for self.label2
    
        self.picker.cameraOverlayView = emptyView; //Which by the way is not empty any more..
        [emptyView release];
        [self presentModalViewController:self.picker animated:YES];
        [self.picker release];
    

    Hope its clear enough and that there isn’t anything missing as i have not tested this.

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

Sidebar

Related Questions

I want to make an app that shows itself when the user touches his
I want to make an iPhone app that shows many greeting cards, I like
I'm trying to make an iOS app that shows my location on a map
I want to make a simple app that shows a list of contacts (name,
I want to make app that shows Springboard like SBSetting on Cydia. It is
I want to make a fullscreen app that shows the background of the new
I want to make an app that has a view that moves randomly or
I want to make an app that can receive broadcast when other apps on
i want to make a php app that let people submit photos/videos/sounds Now, everything
I want to make a little tk app that continuous ping an ip and

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.