0

我不明白为什么在使用 IOS8 和 XCODE 6.1.1 运行应用程序时我的故事板中的标签不显示 在此处输入图像描述 我已将我的标签绑定到自定义 UiTableviewCell 并且我可以设置文本但我的标签没有t 出现在单元格内容视图的子视图中,返回方式为tableView dequeueReusableCellWithIdentifier:CellIdentifier];

如果使用[self.tableView registerClass:[NewGameCell class] forCellReuseIdentifier:@"ListNewGameCell"]; 我不能使用情节提要。

我阅读了所有其他问题,但找不到答案。谢谢

4

2 回答 2

1

尝试这个....

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    YourCustomCell *cell = (YourCustomCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
    return cell;
}
于 2015-01-16T08:55:45.447 回答
0

好吧,我太傻了!

UILabel 没有出现,因为我只为 iPad 添加它,而我的模拟器在 iPhone 上。感谢您的帮助

于 2015-01-17T01:14:40.860 回答