Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sgs1

macrumors newbie
Original poster
Jul 14, 2014
28
0
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?

Thanks
 

waterskier2007

macrumors 68000
Jun 19, 2007
1,872
230
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.
 

sgs1

macrumors newbie
Original poster
Jul 14, 2014
28
0
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.


I can create a UiTextField, but how i can save it in NSMUtableArray?
And how i can separate the new uitextfield?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.