how can i update cell value when i pop to tableview?

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];

Answers


do it in -viewWillAppear:. That should do it.


Need Your Help

Two UITableViewCells in my XIB for iPad/iPhone

objective-c xcode uitableview xib

I am trying to use two differently formatted UITableViewCells depending on if it's an iPad or iPhone. Both the cells show the same information, but the iPad cell has half the height and double the ...

Memory Leak initWithContentsOfFile

iphone objective-c cocoa-touch memory-leaks

I just finished running my application through instruments and I am leaking _NSCFDictionaries out of control. I do not have a @property set up for workoutArray as it is a private instance variable.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.