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

The Archive Base Latest Questions

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

So I am having the strangest problem and I have gone to every where

  • 0

So I am having the strangest problem and I have gone to every where it seem. What I am having an issue with is that I create custom annotation views for my MKMapView.This MKMapView starts with no annotations and as you change the region then annotation are created and added to the map. Upon calling [my_map_view addAnnotation:a_annotation]; Nothing happens. mapView viewForAnnotation is not called and there is nothing Displayed. Now, this is the case for the iPhone4 however when I run the same code on the simulator it ends up working. I am wondering why this is? I believe that it is a refresh problem on the maps part because when I double tap on the phone and the map does its zoom deal, the annotation shows up. I know that you can do a whole bunch of [my_map_view setRegion:my_map_view.currentRegion]; and setting the center with its center to try a refresh I have even tried changing the region to a different one however nothing works. Any Ideas, I am stumped and have been working on this for the past 3 days.

  • 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-26T00:09:18+00:00Added an answer on May 26, 2026 at 12:09 am

    Hey guys so I fixed what the issue is. Whenever you have a problem reloading the map I found the best solution is to destroy and create the map in order to show your annotations. So make sure to remove the map from the view release it set it to nil and then reallocate the memory and initialize it with you annotation data. Sorry about not posting code I have to clean a lot of the data names in order to:( – If this solution doesnt work go ahead and shoot me a message so I can go through the code with you. If anything I can always make an example for you:) it just might be a while cause of work.

    Also here is my view for annot method for you guys cause I know that that was wanted for posting 🙂

    -(MKAnnotationView*)mapView:(MKMapView*)mapView viewForAnnotation:(id<MKAnnotation>)annotation
    {
        MKAnnotationView *annotation_view = nil;
        CustomAnnotation *annot = (CustomAnnotation*)annotation;
        CustomAnnotationView *view;
                view = [[[CustomAnnotationView alloc] initWithAnnotation:annot reuseIdentifier:@"Job"] autorelease];
        [view addObserver:self forKeyPath:@"selected"options:NSKeyValueObservingOptionNew context:GMAP_ANNOTATION_SELECTED];
        view.image = [UIImage imageNamed:@"map_marker"];
        view.canShowCallout = YES;
        annotation_view = view;
        [annotation_view setEnabled:YES];
        [annotation_view setCanShowCallout:YES];
        return annotation_view;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a strange problem in that I have php inserting text into a
Im having a very strange problem, i have a complicated view that returns incorrect
I'm experiencing the strangest problem and have been having a terrible time debugging it.
I'm having a strange problem - I have about 14.5 million bitmap images, that
I am having this strange problem: I have just developed a WCF service (on
I'm having a strange problem. I have a method that sends off notifications by
I am having the strangest problem ... every time i commit i get and
I'm having a strange problem with Android 1.6 I have an application that has
I'm having a strange problem here... I have an ASP.NET 3.5 application that has
I've been having a strange problem that I've never seen before. Now I have

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.