uitableview reloadData issue

Posted by CocoaNewBee on Stack Overflow See other posts from Stack Overflow or by CocoaNewBee
Published on 2010-03-31T19:42:07Z Indexed on 2010/03/31 19:43 UTC
Read the original article Hit count: 471

I've been debugging my iphone app and found something interesting.

I have a UIViewControllers with TabBarcontroller( 6 tabs). each tab is a UIViewController and it has a UITtableview. The viewDidLoad works and brings the initial data. On of the UITableView has a search bar. After the user touchs presses search some magic happens and I get an array with data. I cant see the new data in the tableview and the [tableView reloadData] has no effect outside viewDidLoad (first time).

I can see the array holding the data and the dataSource is set to self. Yet, no displaying of data!

so I 've tried [self.tableView reloadData] & [self.tableView setNeedsDisplay]

Funny enough, the new data is not being displayed. However if I move the table up or down the cellForRowAtIndexPath is being fired and the first row shows data.

can anyone shed some light on this mystery???

if there a [self.view refreshscreen] ??

© Stack Overflow or respective owner

Related posts about uitableviewcontroller

Related posts about uiviewcontroller