gpt4 book ai didi

iphone - iPad 应用程序 UITableView 委托(delegate)方法没有被调用

转载 作者:行者123 更新时间:2023-12-03 20:19:17 24 4
gpt4 key购买 nike

我使用与在编写 iPad 应用程序时在 iphone 中填充 UITableView 相同的技术。选项卡栏 Controller >UINavigationController>myCustomTable 类型的 UITableViewController(从 NIB 加载)

MyCustomTableViewController NIB 和类文件实现委托(delegate)方法

@interface MyCustomTableViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource> {

NSMutableArray *PDFList;
IBOutlet UITableView *PDFTable;

}

但是我的委托(delegate)方法没有被调用。我该怎么办?

最佳答案

找到解决方案......

在tableView委托(delegate)方法中- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

我返回 0,因此没有调用任何委托(delegate)方法。

关于iphone - iPad 应用程序 UITableView 委托(delegate)方法没有被调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2867644/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com