PDA

View Full Version : How to do this??




arnieterm
Sep 23, 2008, 11:16 AM
Hi
Its a newbie question. I have to dynamically generate a collection [key-value pairs]. The keys are "CompanyName", "Phone","Email", "Address".
I have not worked on key value collections before. So if I have a view on the IPhone that contains textfields fr these keys and a button on whose click, I want to add these entries into the collection. The collection size is fixed say of 10 rows.
How can I do it?
From the documentation, I see that NSMutableArray will be used but I am not getting how to assign keys and then values to these keys

Thanks



robbieduncan
Sep 23, 2008, 11:48 AM
For key-value pairs look at the documentation for NSMutableDictionary instead.