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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:58:11+00:00 2026-05-23T20:58:11+00:00

Sorry I’m still a noob and just learning to program as I go and

  • 0

Sorry I’m still a noob and just learning to program as I go and want to start out on the right foot by learning good design up front. I am using the CLLocationManager and MKReverseGecoder to get my location. In my MKReverseGecoderDelegate method, I create my annotation to show on the MKMapView. In my callout, I use a detail disclosure indicator to bring up another UITableView that displays your current address nicely as opposed to looking at the little black callout bubble.

What is a good way for my DetailViewController (the UITableView) to get the data? Do I have my first class have ivars for address, state, zipcode. In my MKReverseGecoderDelegate, set those ivars when I get that information. (The reason I would think I would need ivars is because my method to get that information in the MKReverseGeocoderDelegate is separate from the displayDetailViewController). And then do I have my DetailViewController have those same values, and when I go to display the DetailViewController, set those same variables? It seems redundant.

Any help would be greatly appreciated. Thanks!

  • 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-23T20:58:12+00:00Added an answer on May 23, 2026 at 8:58 pm

    One option

    Declare custom class inheriting NSObject like

    @interface YourClassName : NSObject 
    {
         NSString *address;
         NSString *state;
         NSString *zipcode;
    }
    
    @property(nonatomic, retain) NSString *address;
    @property(nonatomic, retain) NSString *state;
    @property(nonatomic, retain) NSString *zipcode;
    @end
    
    @implementation YourClassName
    @synthesize address,state,zipcode;
    
    -(void)dealloc
    {
         [super dealloc];
         [address release];
         [state release];
         [zipcode release];
    }
    @end
    
    
    //Create object of YourClassName and set values
    YourClassName *objYourClassName = [[YourClassName alloc] init];
    objYourClassName.address = @"YourValue";
    objYourClassName.state = @"YourValue";
    objYourClassName.zipcode = @"YourValue";
    
    Pass this object to your DetailViewController by one method after creating method like
    
    -(void)setDetailsForDetailViewController:(YourClassName*)pObjYourClassName
    {
         //self.objOfYourClassName is property declared in your detailviewcontroller.
         self.objOfYourClassName = pObjYourClassName; //You can use self.objOfYourClassName to set values in TableViewController. 
    }
    

    If you stuck any where let me know I would be glad to help you fix that.

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

Sidebar

Related Questions

sorry but Im unable to understand these example. I started learning ajax right from
Sorry if the title is poorly descriptive, but I can't do better right now
Sorry for the Windows developers out there, this solution is for Macs only. This
Sorry I could not find this. $('div#loader').slideDown(fast).delay(1.5); Does not word as expected, I want
Sorry if this is a noob question, but All my code is error-free and
Sorry for the non-descript title, but I'm having a hard way with words right
Sorry to bother you all here but I am still trying to understand more
Sorry if this has been addressed. I just can't get it to work. I
(Sorry for my bad English) I want to select all Table Names in my
Sorry I don't quite get FP yet, I want to split a sequence of

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.