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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:43:23+00:00 2026-06-11T10:43:23+00:00

I am a beginner and facing some problems when doing my project. I have

  • 0

I am a beginner and facing some problems when doing my project. I have a table view where I get some NSString value by XML Parsing. This is like :
cell 1 : basic name – name, address, phone number, date.
cell 2 : featured name – name, address, phone number, date.
cell 3 : restaurant name – name, address, phone number, date.

here, cell 1,2,3 are cells of my table view and name, address, phone number, date are the values. I get basic name, featured name, restaurant name and all these values by XML parsing. Now my work is, when I will click on basic name, the detail (name, address, phone number, date) with basic name will pass to an other page. There also be a description of every cell which will be shown when clicking.
I am able to do clicking on a cell and go to another page, but unable to pass these datas.
Here to be noted that I am using Xcode 4.2 and not using story board.

  • 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-06-11T10:43:24+00:00Added an answer on June 11, 2026 at 10:43 am

    You need to think in terms of models, views and controllers. Your model is the underlying data that your tables present. The tables are the views, and the controllers are responsible for extracting the data from the model and passing it to the table and views.

    So instead of thinking in terms of “how do I pass data between table and view?”, think in terms of “how do I provide the data for my view controller so that it can pass the data to its view?”

    So in this situation, as Alan suggests, you’re going to have to pass the objects around.

    Let’s assume that your first table’s model is an NSArray of NSDictionaries, which is a fairly common result of parsinf XML. Each dictionary has key-value pairs for the restaurant information. Your detail view controller needs a property for a dictionary. In the tableView:didSelectRowAtIndexPath: method, you would instantiate the new view controller for the detail view, then set the view controller’s data property to the dictionary in the array at the index that corresponds to the row of the cell that’s just been selected.

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

Sidebar

Related Questions

Yii beginner here. I am facing some problem with how to query the database
I am beginner in python and facing this problem. So how i can break
I'm facing this problem as a CAKEPHP beginner, sorry if this is a very
I'm a beginner in this field and I'm facing this problem which says :[NSMutableArray
I'm facing the following issue. I have a view with a UINavigationBar (not NavController)
Total beginner with PHP: I have an form based on table data that the
Beginner Android and Java developer here. I have this snippet of code inside a
I'm a beginner and have this simple script. My question is how to set
I'm a C# beginner facing problems regarding sending an image from a client to
Beginner iOS dev here. I have a problem in my array. Im making an

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.