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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:31:22+00:00 2026-05-23T23:31:22+00:00

In a NSMutableDictionary like this: [NSMutableDictionary dictionaryWithObjectsAndKeys: [NSString stringWithString:firstName], @NAME, [NSNumber numberWithFloat:familyName], @SURNAME, nil];

  • 0

In a NSMutableDictionary like this:

[NSMutableDictionary dictionaryWithObjectsAndKeys:
[NSString stringWithString:firstName], @"NAME",
[NSNumber numberWithFloat:familyName], @"SURNAME",
nil];

How can all of its elements be converted to the NSString? with the requirement that names and surnames are arranged in string like this: “name, surname, name, surname…”?

This gives a string with all the names but not surnames:

NSString * result = [[urlArray valueForKey:@"NAME"] componentsJoinedByString:@", "];

Is there a way similar to the one above to create a string with all the values of NSMutableDictionary?

  • 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-23T23:31:23+00:00Added an answer on May 23, 2026 at 11:31 pm

    Try something like this:

    NSString *result = [NSString stringWithFormat:@"%@, %@", [urlArray valueForKey:@"SURNAME"], [urlArray valueForKey:@"NAME"]];
    

    The %@ represents an objective-c object for more details see the Apple docs

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

Sidebar

Related Questions

If I had an NSDictionary like this: NSMutableDictionary *valuesDictionary = [NSMutableDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithDouble:-60.0],@a,
I would like to do something like this: #define GETKEY (a) ([NSString stringWithFormat:@%d,a]) NSMutableDictionary
I am trying to upload file with like this: NSMutableDictionary * lParameters = [NSMutableDictionary
I am having an NSMutableDictionary with, being filled dynamically. It looks like this: {
When a Facebook dialog is created with code like this NSMutableDictionary* params = [NSMutableDictionary
I have An NSMutableArray of NSMutableDictionary Which Looks like this Object 1 of Array
I have a class like this: @interface MyCollection : NSObject { NSMutableDictionary *data; }
I have a NSMutableDictionary of NSMutableSets. Each set entry is a string, something like
For C I would init an array like this: NSInteger x[3][10]; That works. Below
I've heard that it is a bad idea to do something like this. But

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.