I have the following output from my challenge solution - not entirely sure if this is what was requested, but is what I have produced.
[code]<?xml version="1.0" encoding="UTF-8"?>Stock Portfolio e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcY29jb2FydGYxMjY1XGNvY29hc3VicnRmMjEw CntcZm9udHRibFxmMFxmc3dpc3NcZmNoYXJzZXQwIEhlbHZldGljYTt9CntcY29sb3J0 Ymw7XHJlZDI1NVxncmVlbjI1NVxibHVlMjU1O30KXHBhcGVydzExOTAwXHBhcGVyaDE2 ODQwXG1hcmdsMTQ0MFxtYXJncjE0NDBcdmlld3cxMDgwMFx2aWV3aDg0MDBcdmlld2tp bmQwClxwYXJkXHR4NTY2XHR4MTEzM1x0eDE3MDBcdHgyMjY3XHR4MjgzNFx0eDM0MDFc dHgzOTY4XHR4NDUzNVx0eDUxMDJcdHg1NjY5XHR4NjIzNlx0eDY4MDNccGFyZGlybmF0 dXJhbAoKXGYwXGZzMjQgXGNmMCBub3cgaXMgdGhlIHRpbWUgZm9yIGFsbCBnb29kIG1l biB0byBnaXZlIHdoYXRldmVyIGl0IGlzIHRoZXkgd2FudCB0byBnaXZlXCc4NX0= 2014-12-13T20:41:09Z 1000 2.0099999904632568 shares 200 symbol AAPL shares 200 symbol GOOG [/code]
My question is … I know how to produce this, but how would I go about reading this into my code? Before the challenge it would be a simple for loop to read in the array of dictionaries, but how do you separate out the other items of the array?
Would it be simply to go through the array manually detecting the type of data held by each element in the array?
How would you detect what the object type is for each individual element in the array, for example…
Array item 1 is a NSString type, item 2 is a NSData type etc.?