Hi,
I have a list of items, and in a modal view controller, i have what is effectively a 'New item' screen, where a user can type in a new thing for the list.
The list is a UITableView, with data source, NSMutableArray.
here is the code on the MVC
-(IBAction)done{
[RoutineTitle resignFirstResponder];
[RoutineInvolvment resignFirstResponder];
NSString *myString = RoutineTitle.text;
FirstViewController *FirstView = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil];
NSLog(@"Log the String: %@", myString);
[FirstView.routines addObject:myString];
[self dismissModalViewControllerAnimated:YES];
}
But, then when returned to the regular screen, it does not show up. im not sure if its not adding it to the array correctly, or if the table view needs to refresh or what.
Any help would be appreciated. Thanks
Sam