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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:09:45+00:00 2026-06-03T09:09:45+00:00

I have an app that calls to a server and gets a long string

  • 0

I have an app that calls to a server and gets a long string of data returned. The data is a list of addresses as in the example here:

2133664:American Taxi Dispatch, Inc:Mount Prospect:834 E RAND RD|2133665:Walmart:Mount Prospect:930 Mount Prospect Plaza|

The data is, a unique identifier, The title, the city, and the street address.

I need to first know how to traverse this data so that I can separate the identifier, title, city and street. I am also looking for a recommended data structure that I can use to tie all the information together. I will be adding the titles to a NSMutableArray so I can display them in a UIPickerView. Then the user will need to select one and the entire address must be returned.

  • 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-03T09:09:47+00:00Added an answer on June 3, 2026 at 9:09 am

    As far as I can see you’re data is separated by :, what you need to do is to split each line on this character:

    NSString* line = @"2133664:American Taxi Dispatch, Inc:Mount Prospect:834 E RAND RD|2133665:Walmart:Mount Prospect:930 Mount Prospect Plaza|"
    NSArray* components = [line componentsSeparatedByString:@":"];
    NSString entryId = [components objectAtIndex:0];
    NSString name = [components objectAtIndex:1];
    NSString address = [components objectAtIndex:2];
    // etc ...
    

    You can use these components to build an object with fields for entryId, name, address. When displaying the item you use name, and when the item is selected you access the address field.

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

Sidebar

Related Questions

I have an iPhone app out there that calls home to my server every
At the moment, I have a simple app that Ajax's to a server, gets
I have a GWT app that makes an RPC call to a server to
I have a legacy PHP/MySQL app that calls mysql_connect(). Tons of existing downstream code
I have a C++ app that uses Python to load some scripts. It calls
I have an application that uses AsyncTasks to make calls to a REST server.
I have a question regarding cross-origin policies. I have a web app that gets
I have a web app which displays a list of emails that need to
I have an app that uses a couple of SOA calls to get some
I have an android app that needs to connect frequently to the server to

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.