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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:24:09+00:00 2026-05-26T10:24:09+00:00

I am using a MKMapview to display a map in my native iPhone application

  • 0

I am using a MKMapview to display a map in my native iPhone application and I add two markers to the map view. On clicking the annotation marker I want a phone number to be displayed and clicking on the phone number should make a call to that number.

How can I 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-05-26T10:24:09+00:00Added an answer on May 26, 2026 at 10:24 am

    The way this works is: you provide a “tel:” URL for your application to open. This calls the Phone application, which automatically starts dialling the provided number. To do this by clicking on an annotation callout, you need to provide a mapView:annotationView:calloutAccessoryControlTapped: method in your MKMapViewDelegate.

    If, for example, the phone that you wish to dial is the annotation’s title, this is how you’d do it:

    - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control {
        NSString *phoneNo = view.annotation.title;
        NSString *telString = [NSString stringWithFormat:@"tel:%@", phoneNo];
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:telString]];
    }
    

    In practice, you would also need to check whether the current device is indeed a phone (i.e. not an iPod touch or an iPad). It would also be good to let the user know that they are about to make a phone call, prior to launching the Phone app. E.g. show them an action sheet that allows them to decide whether to make the call or cancel.

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

Sidebar

Related Questions

In my iphone application i am using MKMapView to display any region(i.e Australia) and
I m using MkMapView with google maps.I succeed to show map view and address
In My application i am using MKMapview to display the googleMap,but it is not
I am using MKMapView , i want in my map the background image will
I am creating an application which displays map using MKMapView control. I have a
I want to use a MKMapView to display the user current location using the
Query 1: I'm using MKMapKit in which I want to display two location one
I am Using CorePlot in my app, and I want to display a annotation
I have two activities one displaying map view and another listview, the main objective
Friends i am making an application in which i am using Map Activity. Now

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.