jAmi
jAmi

Reputation: 779

iPad application UITableView delegate methods are not getting called

I am using the same technique as i populate my UITableView in iphone while writing my iPad application. Tab Bar Controller >UINavigationController>UITableViewController of type myCustomTable(load From NIB)

MyCustomTableViewController NIB and class file implements the delegate methods

@interface MyCustomTableViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource> {

 NSMutableArray *PDFList;
 IBOutlet UITableView *PDFTable;

}

but my delegate methods are not getting called. What do i do?

Upvotes: 2

Views: 4370

Answers (3)

jAmi
jAmi

Reputation: 779

Found the solution....

in the tableView delegate method - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

i was returning 0 and hence none of the delegate methods were being called.

Upvotes: 9

Tom S
Tom S

Reputation: 624

Make sure you have properly set your 'Class' in Identity Inspector (Tools -> Identity Inspector) in Interface Builder. Also set the appropriate 'Referencing Outlet' in Interface Builder.

Upvotes: 1

DougW
DougW

Reputation: 30035

Did you set the delegate and datasource of the table in IB? If you have, and everything is wired up, it should work.

FWIW - This is my biggest problem with nibs. If you run into problems it's much harder to ask for help from people who aren't local.

Upvotes: 3

Related Questions