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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:44:35+00:00 2026-05-27T20:44:35+00:00

I have a NSDictonary object that I am setting a set of objects as

  • 0

I have a NSDictonary object that I am setting a set of objects as an array that has a corresponding key to as follows.

[dictionary setObject: [NSArray arrayWithObjects:@"Player3_Title", @"FirstName", @"LastName", @"Address3", @"SS3", nil] forKey: @"player3_infoKey"];

What I want to do is get those objects back into an array. When I try the following code this is what I get as an output.

stringsMutableArray = [[NSMutableArray alloc] initWithObjects:nil];
    [stringsMutableArray addObject:[dictionary objectForKey:@"player3_infoKey"]];

NSLog(@"stringsMutableArray has values: %d", [stringsMutableArray count]);

NSLog(@"stringMutableArray: %@", [stringsMutableArray objectAtIndex:0]);


OUTPUT:
2012-01-01 08:50:29.869 test project[1165:f803] stringsMutableArray has values: 1
2012-01-01 08:50:29.870 test project[1165:f803] stringMutableArray: (
    "Player3_Title",
    FirstName,
    LastName,
    Address3,
    SS3
)

Is there a way I can get the values for that key into an array? The reason I want to do this is that somewhere in the code I want to set text button values from that array.

FirstNameField1.text = [stringsMutableArray objectAtIndex:1];
LastNameField1.text = [stringsMutableArray objectAtIndex:2];
  • 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-27T20:44:36+00:00Added an answer on May 27, 2026 at 8:44 pm

    I think you simply want to :

    stringsMutableArray = [NSMutableArray arrayWithArray:[dictionary objectForKey:@"player3_infoKey"]];
    

    If you don’t need it to be mutable:

    stringsArray = [dictionary objectForKey:@"player3_infoKey"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an object that has an NSMutableArray of custom UIViews, a UIImage, and
I have an object that act on UserDefaults. It adds things into an Array
I have an NSArray full of NSDictionary object. This structure is built from a
I have some NSDictionary objects stored in an NSArray called telephoneArray . I fetch
I have an NSArray of NSDictionary objects which I would like to be able
I have an NSDictionary object that is populated by instances of NSMutableString for its
I have an NSDictionary. It holds several objects, including an array of child NSDictionaries,
I have a UIViewController that I want to load from a NIB that has
I am trying to pass a single array object (that is a nsdictionary of
My Situation: I have an NSDictionary object. Keyed by NSNumber. Values are custom objects.

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.