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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:42:02+00:00 2026-05-26T15:42:02+00:00

In my MapView, i read data from SQLite and display pins on it (up

  • 0

In my MapView, i read data from SQLite and display pins on it (up to 5000 record).

the database has the structure of ID| Longitude| Latitude | Title | subtitle

i used this code to make the pin clickable:

pin.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];

i need to add a new column (Clickable) in the database, and make the pin clickable just if the “Clickable” value is ON.

any detailed suggestion about the best idea to do that?

  • 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-26T15:42:03+00:00Added an answer on May 26, 2026 at 3:42 pm

    From my experience if you don’t set any property of the annotation (title,subTitle,image,accessory-button) and tap on the pin, the callout is not displayed.
    Instead, if you want show the callout but not call an action when the accessory button is tapped, you could use a thing like this:

    (After downloading the data from the db, you could store each item as a NSDictionary and then all items in a NSArray)

    - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control{
    
        NSString *clickable=[[yourArray objectAtIndex:yourIndex] objectForKey:@"clickable"];
        if(![clickable isEqualToString:@"YES"]){
            return;
        }
    }
    

    Of course I used a string as example, you may also use NSNumbers or BOOLs.

    Hope i understood your question.

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

Sidebar

Related Questions

I'm using a background thread to read some data from my database.The data that
I read the current location's latitude and longitude values and then pin that location
I have an app in which I read some gps data and I display
i try to get the current zip code from the longitude and latitude which
I have one view where I read json data. and extract keys from it.
I have a simple mapview that has the following viewdidload method and didupdate to
I have a mapview with several annotations. Every annotation has a leftCalloutAccessoryView which is
i have a mapView with pins on it, and the following code for CLLocation
Is there a way to display a MapView without extending MapActivity? I have other
This is my MapActivity Class, it should read the address from the string, reverse

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.