more uitextfield

Discussion in 'iOS Programming' started by sgs1, Sep 5, 2014.

  1. sgs1 macrumors newbie

    Jul 14, 2014
    Hi everybody!

    I need to create a uitextfield after i press a button.
    For example: i have 3 uitextfields, and if i press "new" , i create automatically a new textfield; when i press "End" I can save or get the values of this textfield.

    but: how i can give different name to my new textfield? How i can mark them?

  2. waterskier2007 macrumors 68000


    Jun 19, 2007
    Novi, MI
    You would probably want to have an NSMutableArray and when you press the button, instantiate your UITextField, place it in your view, and add it to the NSMutableArray. You would then be able to keep track of them by their index in the array.
  3. sgs1 thread starter macrumors newbie

    Jul 14, 2014

    I can create a UiTextField, but how i can save it in NSMUtableArray?
    And how i can separate the new uitextfield?

Share This Page