连接到控制器时,静态TableViewControllers单元UI不显示

时间:2015-06-10 14:49:26

标签: uitableview ios8 xcode6

我遇到了一个关于Xcode 6 iOS8中Uitableview单元的奇怪问题。当我从故事板创建一个tableViewController并选择静态单元格时,视图就会显示出来。但是,当我将相同的视图连接到TableViewController源时,单元格消失。我连接了所有必要的东西(可重复使用的cell_ID等)。有人经历过吗?这曾经对我有用。提前致谢!

1 个答案:

答案 0 :(得分:1)

请确保您未在​​UITableViewDatasourceDelegate中实施任何TableViewController方法,例如以下方法。

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
}