Ios 为什么我的表没有加载数据?

Ios 为什么我的表没有加载数据?,ios,uitableview,Ios,Uitableview,我在做一些类似于这个人的代码的事情。但是,一个不同之处是,我创建了一个具有UITableView和其他UIView元素的nib,并将nib的文件所有者设置为自定义类,该类定义为 @interface MyCustomView : UIViewConroller <UITableViewDelegate, UITableViewDataSource> @end 我还遗漏了什么?洛奇给了我线索。我确实这样做了 - (NSInteger)tableView:(UITableView *)

我在做一些类似于这个人的代码的事情。但是,一个不同之处是,我创建了一个具有UITableView和其他UIView元素的nib,并将nib的文件所有者设置为自定义类,该类定义为

@interface MyCustomView : UIViewConroller <UITableViewDelegate, UITableViewDataSource>
@end

我还遗漏了什么?

洛奇给了我线索。我确实这样做了

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [_myObjArray count];
}

但是我在错误的位置设置填充数组,因此它返回的计数为0。因此我看不到数据

你会重新加载数据吗?由于存在xib,是否至少显示了MyCustomView。是否实现了tableView:numberOfRowsInSection:和numberOfSectionsInTableView:?是否显示MyCustomView。要重新加载数据,如何在nib中获取UITableView对象?
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [_myObjArray count];
}