Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lowcountry01

macrumors newbie
Original poster
Aug 13, 2009
7
0
How would I parse a simple string that is not from xml?
For example, I have two arrays: arrayName and arrayProduct. I have a string (myString) that looks like this:

Crest;Toothpaste;;Polo;Shirts;;Webster;Dictionaries;;Starbucks;Coffee;;

What I want to do is have the company name be inserted into arrayName, and the product inserted into arrayProduct. I will eventually populate a uitableview with these, having the company prominent, and the product the cell's subtitle.

How would I go about parsing this?
 
Has anyone else noticed that the person that wrote the documentation for that method was obviously a 'Porridge' fan - Norman, Stanley, Fletcher...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.