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

  • Home
  • SEARCH
  • 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 8096931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:35:52+00:00 2026-06-05T21:35:52+00:00

I have an array,something like below MutableArray ( { a = 1; b =

  • 0

I have an array,something like below

MutableArray (
        {
        "a" = 1;
        "b" = "";
        "c" = " ";
        "imagepath" = "../images/image.png";
        "d" = "dummy text";
        "e" = 2;
        "f" = "dummy text";
        "g" = dummy text;
        "h" = dummy text;
        "i" = "Feb 19, 2010";
    },
        {
        "a" = 2;
        "b" = "dummy";
        "c" = "dummy";
        "imagepath" = "../images/noimage.png";
        "d" = "dummy text";
        "e" = 3;
        "f" = "dummy text";
        "g" = dummy text;
        "h" = dummy text;
        "i" = "Mar 23 , 2010";
    })

What exactly i am trying is to get the values separately from the array like

row 1 : Title a,
row 2 : Title b,
row 3 : title c,

i want each values from the array separately.

I have table view, custom cell, with image and labels already created.
for ex Row 1 = data from index 1
row 2= data from index 2
something like that.
I m not sure how to get separates values from the array and put it in table row’s labels.

Kindly suggest,how can i do that.

  • 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-05T21:35:54+00:00Added an answer on June 5, 2026 at 9:35 pm

    // Try getting values using KVC

    // Paste this in – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

        id key;
        NSDictionary *theDictionary = [yourMutableArray objectAtIndex:indexPath.row];
        id value;
        for (key in [theDictionary allKeys])
        {
            value = [theDictionary objectForKey:key];
            // do something with the value
        NSLog(@"key: %@, value: %@", key, [theDictionary objectForKey:key]);
        }
    Or else Try this
    
    NSDictionary *theDictionary = [yourMutableArray objectAtIndex:indexPath.row];
    NSLog(@"key: a, value: %@", , [theDictionary objectForKey:@"a"]);
    NSLog(@"key: b, value: %@", , [theDictionary objectForKey:@"b"]);
    NSLog(@"key: c, value: %@", , [theDictionary objectForKey:@"c"]);
    // So on ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class something like below, and I used instance variables (array) to
I have an array something like below. Array ( [0] => 100 [1] =>
i have something like below : $array1 = array('first_name'=>'tom','last_name'=>'jackson','city'=>'london'); $array2 = array('last_name'=>'jackson','city'=>'london','first_name'=>'tom'); $array3 =
I have an array that looks something like this: $array[] = 'MT0001ENG Apricot, dried';
I have an array, let's call it $menus, that contains something like this: Array(
I have an associative array assigned to a Smarty variable, something like this: $foo
I have something like m = array([[1, 2], [4, 5], [7, 8], [6, 2]])
I have a jsonArray something like this. var json_array = [ { text: id,
Hi I have created a setDecorator() which is something like this: $timeSu->setDecorators(array('ViewHelper', 'Description', 'Errors',
I have a script that iterates over an array of values, something like this

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.