How can I populate an empty but initialized array via text input?
I want the + button in the navbar to bring up a UIAlert prompting for a text. This text will then be stored in the array.
How would I go about this?
i think u can save that text in the nsstring.
but if u want to save the text in nsarry then u can do this
NSArray *data= [[NSArray alloc] initWithObjects:textField.text,nil];
and in order to save data in already declared nsarry then u can do this. if ur array is @property and syntesized
NSArray *data= [[NSArray alloc] initWithObjects:textField.text,nil];
self.urArray=data;
[data release];