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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:13:23+00:00 2026-06-15T11:13:23+00:00

I am very new to programming in Objective C (as in a few days),

  • 0

I am very new to programming in Objective C (as in a few days), and unfortunately have an iPhone app due as a project for a class in a few days (in retrospect I probably should have chosen something different). One of the main features my app needs is the ability to select a dish from a menu by first selecting the meal on one page, and then the category on the next page, and then the dish on the final page. I have gotten my app to download a JSON file from an internet API and store it as an NSArray variable, but now I need to use that array to populate my tableview. Below is a sample from the downloaded array from my app’s debug window. I already have the basic framework of the app (i.e. several different views) in place. This came from a sample app that populates the tableview rows with data from a plist file, but I want to use this JSON data. How would I use this array to populate the rows with the JSON data stored in this NSArray variable?
Thanks!

2012-12-05 03:29:48.973 MLBMobile[3858:c07] {
    category = "BREAKFAST MEATS";
    date = "2012-12-05";
    meal = BREAKFAST;
    name = "Low-Sodium Ham";
    portion = 1;
    recipe = 319044;
    unit = oz;
}
2012-12-05 03:29:48.975 MLBMobile[3858:c07] {
    category = "BREAKFAST MEATS";
    date = "2012-12-05";
    meal = BREAKFAST;
    name = "Roasted Low-Sodium Turkey";
    portion = 4;
    recipe = 113503;
    unit = oz;
}
2012-12-05 03:29:48.976 MLBMobile[3858:c07] {
    category = "BREAKFAST ENTREES";
    date = "2012-12-05";
    meal = BREAKFAST;
    name = "Cheddar Cheese";
    portion = 1;
    recipe = 130029;
    unit = oz;
}
2012-12-05 03:29:48.976 MLBMobile[3858:c07] {
    category = "BREAKFAST ENTREES";
    date = "2012-12-05";
    meal = BREAKFAST;
    name = "Hard Cooked Eggs - Cage Free";
    portion = 1;
    recipe = 061009;
    unit = each;
}
  • 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-15T11:13:24+00:00Added an answer on June 15, 2026 at 11:13 am

    With your array variable you can iterate through each element. Use fast enumeration:

    for(NSDictionary *dict in yourArrayVariable){
        NSString *category = [dict objectForKey:@"name"];
        //...you get the point
    }
    

    Now you can populate your row by just setting the properties of the row. For example, if you are using the default UITableViewCell:

    cell.textLabel.text = name;
    

    There is a bit more to this that you can do for better data/model/view separation, but I have just included examples as if it were all done locally in one file.

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

Sidebar

Related Questions

First off I am very new to Objective C and iPhone programming. Now that
I'm Very new to Objective-C iPhone programming. I'm kinda gonna go with the trial-and-error
I am very new to python programming and have yet to buy a textbook
I'm very much new to programming and have been doing fairly well so far.
I am very new to programming in FLEX. I have inherited a FLEX 4
I am very new to programming, and have been banging my head against the
I'm very new to objective-c and programming. I had read in one of the
I'm very new to programming in Android, but have been struggling all day with
i am VERY new to objective-C. My only previous programming experience is with visual
I very new to programming and I have a simple problem that I just

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.