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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:02:09+00:00 2026-06-10T10:02:09+00:00

I have created an app that simply shows the user’s current position on a

  • 0

I have created an app that simply shows the user’s current position on a google map using the MapKit.

However I would now like to go a bit further and add a bit more functionality to the app by allowing the user to plot points on the map themselves.

I somehow believe using CoreLocation will accomplish this by receiving and saving coordinates of where the user selects on the map.

Am I right in saying this? and any ideas on how I would implement this? Links or tutorials would be helpful too, and also any personal experience/ideas in the matter would be great.

I have created an app that implements coreLocation before this app, compiled/ran perfectly.. just didnt update user location and latitude/longitude. the code is shown below for that app:

This is only in the AppDelegate.m which is what does all the work basically.

#import "AppDelegate.h"
#import "ViewController.h"

@implementation AppDelegate

@synthesize window;
@synthesize viewController;
@synthesize locationManager;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    self.locationManager = [[CLLocationManager alloc]init];
    if ([CLLocationManager locationServicesEnabled]) {
        self.locationManager.delegate = self;
        self.locationManager.distanceFilter = 100;
        [self.locationManager startUpdatingLocation];
    }
}

- (void)applicationWillTerminate:(UIApplication *)application
{
}

#pragma mark CLLocationManagerDelegate Methods

-(void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{
    MKCoordinateSpan span;
    span.latitudeDelta = 0.2;
    span.longitudeDelta = 0.2;

    MKCoordinateRegion region;
    region.span = span;
    region.center = newLocation.coordinate;

    [viewController.mapView setRegion:region animated:YES];
    viewController.mapView.showsUserLocation = YES;

    viewController.latitude.text = [NSString stringWithFormat:@"%f", newLocation.coordinate.latitude];
    viewController.latitude.text = [NSString stringWithFormat:@"%f", newLocation.coordinate.longitude];
}

@end
  • 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-10T10:02:11+00:00Added an answer on June 10, 2026 at 10:02 am

    Are you a signed up iOS developer? Apple’s code samples include a few map apps, they should get you started.

    Since you’re not having any luck while searching for tutorials online here are some terms that might help

    MKAnnotation : What you’d use to mark a location on the map (a pin, a flag, a bit of text)
    UIGestureRecognizer : Use one of these to find out when a user has touched the map, look for touch-and-hold events as a good sign they want to mark it because touch-and-drag would be for moving the map around
    MKMapPoint : A place on a flat map of earth as used in iOS. Remember that these are different from CLLocationCoordinate2D’s longitude and latitude but you can easily convert between them.

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

Sidebar

Related Questions

I've created an app that shows 8 buttons in coverflow using icarousel.i have to
I have created a simple app which shows a Google Map. I am testing
I have a click-once deployed app that uses a notification icon created using the
I have created an app that uses NSTimer, which gets triggered each second. My
I have successfully created an app that reads from a bundled .plist file and
I have created a nice icon for my app that quite accurately reproduces the
I have created a flexible navigation bar in my app that will show custom
I have created an app in C# .Net 2.0 that uses the AxShockwaveFlash object
I have created a service class for my network connection so that my app
I have an app that recognizes an extension of a file created in my

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.