Why my add items dont save on memory? When I back to RootViewController my list disappear, What happened ?
Code for add and work fine...
- (IBAction) addButtonPressed: (id)sender {
NSLog(@"Add button pressed!");
addPosto *addposto = [[addPosto alloc] initWithNibName:@"postoDictionary" bundle:nil];
UINavigationController *addNavCon = [[UINavigationController alloc] initWithRootViewController:addposto];
addposto.postoArray = self.poscomb;
[self presentModalViewController:addNavCon animated:YES];
[addposto release];
[addNavCon release];
}
On RootViewController select row "Meus Postos"
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
postoLista *codigo = [[postoLista alloc] initWithNibName:@"postoLista" bundle:nil];
[self.navigationController pushViewController:codigo animated:YES];
[codigo release];
}
So I need to know how I archieve list on memory after add items, thanks for attention!
Eduardo Parucker.