In my uinavigation controller based application when i click to tableview cell it push me a new table view where i can choose values, i save them in to shared preferences and on pop i need to have that value in the cell where i have clicked, but i do not know where to call the [myTableView ReloadData]; procedure.
I have the value there only when i scroll the table view.I m sure it can be made simply but i just do not find out how.
can you help me?
thanks
pushing:
[myTableView reloadData];
Choose *choose = [[Choose alloc] initWithNibName:nil bundle:nil];
[self.navigationController pushViewController:choose animated:YES];
choose.navigationItem.title = @"Ucty";
choose.myArray = rootArray;
[choose release];
[myTableView reloadData];
poping:
[zKtorehoUctu setObject:[myArray objectAtIndex:indexPath.row*5+2] forKey:@"zUctu"];
[zKtorehoUctu synchronize];
[self.navigationController popViewControllerAnimated:TRUE];
I resolve it, but this method should not be used the secondviewcontroller inherit the pointer of firstviewcontroller’s tableview, and then when i choose the value i just call reloadData.
It is not good way to solve it but it works.
hope my answer or Deepak ‘s answer hwlp to solve You this kind of problem
bye