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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:45:00+00:00 2026-05-29T09:45:00+00:00

I have already Fetched the name of location through coordinates. with this code reverseGeocoder

  • 0

I have already Fetched the name of location through coordinates.

with this code

    reverseGeocoder = [[MKReverseGeocoder alloc] initWithCoordinate:newLocation.coordinate];
    reverseGeocoder.delegate = self;
    [reverseGeocoder start];

here newLocation having my current location

and reverseGeocoder is the type of MKReverseGeocoder.

I also add the framework MapKit and add delegate MKReverseGeocoderDelegate.

and define this delegate in .m file

-(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
{...}

when we start this delegate and get the location with (MKPlacemark*)placemark after that i show this with in an AlertView in above delegate method or any other user defined method like:

[[[[UIAlertView alloc] initWithTitle:@"Place" 
message:[[[NSString alloc] initWithFormat:@"%@",placemark] autorelease] 
delegate:self 
cancelButtonTitle:@"Okay" 
otherButtonTitles:nil] autorelease] show];

Problem is that my alert view is appeared again and again in every second.

so please let me know how to stop the reverseGeocoder or how i can see this alert view just once.

thanx in advance.

  • 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-29T09:45:01+00:00Added an answer on May 29, 2026 at 9:45 am

    This problem is create , Because you have every time new location , this problem is remove from two way…
    1) use distance condition between two location …and when your distance is greater then a particular distance then you see alert view…..

    2)if use want to see alert once time then use this code…

    int count = 0;
    -(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
    {
    
    .......
    if(count == 0)
    {
    [[[[UIAlertView alloc] initWithTitle:@"Place" 
    message:[[[NSString alloc] initWithFormat:@"%@",placemark] autorelease] 
    delegate:self 
    cancelButtonTitle:@"Okay" 
    otherButtonTitles:nil] autorelease] show];
    
    count ++;
    
    }
    }
    

    3)concept

    NSString *previousloaction;/// use like global variable…
    NSString *currentloaction;/// use like global variable…

      -(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
        {
        currentloaction=placemark;
        .......
       if(![previousloaction isEqucaltoString: currentloaction])
        {
        [[[[UIAlertView alloc] initWithTitle:@"Place" 
        message:[[[NSString alloc] initWithFormat:@"%@",placemark] autorelease] 
        delegate:self 
        cancelButtonTitle:@"Okay" 
        otherButtonTitles:nil] autorelease] show];
    
       previousloaction =currentloaction;
    
        }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have already have this code to force these URLs to HTTPS: RewriteCond %{HTTPS}
I have already googled for this I have a Table with following structure in
I have already posted a question about this, but the situation has changed sufficiently
I have a table student like this id | name | zip 1 |
I have already posted something similar here but I would like to ask the
I have already tried PreRenderComplete and unload is too late
I have already created a webpart to show the data from list, but I
I have already search for some time over the net on how to create
I have already a site with a single homepage index.php which accepts 2 parameters
I have already implemented some AJAX pagination in my Rails app by using the

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.