Can I refer to NSDictionary items numerically?

Posted by cannyboy on Stack Overflow See other posts from Stack Overflow or by cannyboy
Published on 2010-05-12T10:14:39Z Indexed on 2010/05/12 10:24 UTC
Read the original article Hit count: 212

Filed under:
|
|
|

I'm trying to set up a UITableView which acts as a form. Each cell has within it a UILabel and a UITextField, so one cell is:

Name          <enter name>
^             ^
UILabel       UITextField

Now, I'm trying to populate the UILabel and the UITextField from a NSDictionary (from a plist), where it's organized like so:

Root            Type           Value
  Name          String
  Address       String
  City          String

  etc

But in order to get the right labels and textfields in the cellForRowAtIndexPath method, I would have to refer to the Dictionary numerically. Is there any way to do that?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c