Updating UITableViewCell not refreshing the UI?

The UITableView has a method „reloadData. “ Just call it.

Up vote 1 down vote favorite share g+ share fb share tw.

I have a UITableView and on the first time cellForRowAtIndexPath is called, I save all the UITableViewCell values I return. I do this so that I can update the contents when ever the underlying data changes. However, when I update the contents of the UITableViewCell, the UITableView does not show the new entries until I scroll up and down on the UI.

How do I programatically force the refresh? Cocoa-touch uitableview iphone-sdk-4.0 uitableviewcell ios4 link|improve this question asked Jul 16 '11 at 19:33DeShawnT294 31% accept rate.

The UITableView has a method „reloadData. “ Just call it: tbl reloadData.

Yes but perhaps he wants to keep his eye on the selected cell. No? – Pierre Jul 16 '11 at 19:37 And I do call reloadData but that does not seem to cause the UITableView to update its contents... – DeShawnT Jul 16 '11 at 19:42.

You can first save the index position of your cell, refresh your datas and then scroll automatically to your index. So save it then call reloadData method and then scroll it to your save.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions