UITableView becomes invisible after changing data in it

Posted by Alexander Shemshurenko on Stack Overflow See other posts from Stack Overflow or by Alexander Shemshurenko
Published on 2010-04-13T11:26:30Z Indexed on 2010/04/13 11:53 UTC
Read the original article Hit count: 301

Filed under:
|
|
|
|

Hi I have application with TabBar that control several views. In one view i control connection to different servers.Each server provides different set of items. I display these items in UITableView on other view. I create table view like this

  UITableView * aTableView = [[UITableView alloc] initWithFrame:CGRectMake(X,Y,Width,Height) style:UITableViewStyleGrouped];

  [[self view] addSubview:aTableView];

  aTableView.da
taSource = self;

The problem is that Table view displayed ok first time , but if i go back to view number one and change server(changing list of items that should be displayed in table view), table view becomes invisible for some reason. If i tap on the screen in place where it should be, its becomes visible again. Ive tried to call to reloadData and setNeedDisplay in viewWillAppear of the UIViewController that hosts this table view, but without success. Any advice? Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview