Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 524
jAmi Avatar asked Jan 23 '26 04:01

jAmi


1 Answers

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.

like image 119
jAmi Avatar answered Jan 24 '26 18:01

jAmi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!