UITableView gives empty table, does not load data
Posted
by Alex L
on Stack Overflow
See other posts from Stack Overflow
or by Alex L
Published on 2010-04-08T04:27:19Z
Indexed on
2010/04/08
4:33 UTC
Read the original article
Hit count: 376
Hi,
Everything works fine when the view that holds my table is the main (first) view.
However, when it's not the first view and I switch into that view, my table does not load data and I get an empty table.
Using NSLog I can tell that the program is not invoking numberOfRowsInSection and cellForRowAtIndexPath.
I have <UITableViewDataSource, UITableViewDelegate>
, IBOutlet UITableview *tableView
all declared. They are also connected in the InterfaceBuilder.
I tried using viewWillAppear
and [tableView reloadData]
but that did not help.
I'm new to iPhone development and your help is appreciated!
© Stack Overflow or respective owner