IPad app UITableView delegate methods not getting

I am using the same technique as I populate my UITableView in iphone when writing my iPad app. Tab bar controller> UINavigationController> UITableViewController of type myCustomTable (loaded from NIB)

MyCustomTableViewController NIB and class file implement delegation methods

@interface MyCustomTableViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource> {

 NSMutableArray *PDFList;
 IBOutlet UITableView *PDFTable;

}

      

but my delegate methods are not getting called. What am I doing?

+2


a source to share


3 answers


Found a solution ....

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



i returned 0 and therefore none of the delegate's methods were called.

+9


a source


Have you set up delegate and table data source in IB? If you have it and everything is connected, it should work.



FWIW - This is my biggest feather problem. If you have problems, it is much more difficult to seek help from people who are not local.

+3


a source


Make sure you have configured your "class" correctly in the Identity Inspector (Tools -> Identity Inspector) in the Interface Builder. Also set the appropriate "Reference Output" in the Interface Builder.

+1


a source







All Articles