I have a table and so far, I can populate it by adding values to an array in the code. But I want to use a textfield values and enter it there, the only problem is, if I do that I can only have one value, I want to pass a textfield value without overwriting the current cell. Here is what I have:
-(void)viewDidLoad { [super viewDidLoad]; //[self fetchRecords]; titlestring = [[NSUserDefaults standardUserDefaults] objectForKey:@"titletext"]; detailsstring = [[NSUserDefaults standardUserDefaults] objectForKey:@"details"]; tabledata = [[NSArray alloc] initWithObjects:@"titlestring", nil]; tablesubtitles = [[NSArray alloc] initWithObjects:detailsstring, nil]; } Is there a way to use MyArray[i] = marry initWithObjectcs...
Thanks.
[myArray addObject:myString]...