Accessing items separated by -componentsSeparatedByString

Posted by Graeme on Stack Overflow See other posts from Stack Overflow or by Graeme
Published on 2010-04-09T10:07:20Z Indexed on 2010/04/09 10:13 UTC
Read the original article Hit count: 354

Filed under:
|
|
|

Hi,

I have an array gathered by componentsSeparatedByString: that looks like the following when I use po in the GDB after the array has gone through componentsSeparatedByString:

"\n\t\t           <b>Suburb,
</b> BAIRNSDALE",
    "\n\t\t           <b>Address,
</b> 15K NW BAIRNSDALE",
    "\n\t\t           <b>Reference,
</b> MELWOOD/SCHOOL ROAD",
    "\n\t\t           <b>Last Changed,
</b> 09/04/10 05,
29,
00 PM",
    "\n\t\t           <b>Type,
</b> HOME",
    "\n\t\t           <b>Status,
</b> BUILT",
    "\n\t\t           <b>Property Size,
</b> 2.00 HA.",
    "\n\t\t           <b>Residents,
</b> 2",
    "\n\t\t           <b>First Added Date/Time,
</b> 09/04/10 03,
15,
00 PM",
    "\n\t\t\t"

Only problem is, I now can't figure out where to go from here. I need to be able to access each of these items (i.e. type, status, property size) separately rather than just calling the entire array (i.e. currentProperty.status). How do I do this?

Also what's with all the n\t\t\t things - how do I get rid of them?

Thanks.

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about parsing