How to do this??

Discussion in 'iOS Programming' started by arnieterm, Sep 23, 2008.

  1. arnieterm macrumors regular

    Joined:
    Aug 28, 2008
    #1
    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
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    For key-value pairs look at the documentation for NSMutableDictionary instead.
     

Share This Page