我无法在UITableView单元格中显示任何附件:
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
}
cell.textLabel.text = @"Foo";
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
return cell;
}更改单元格样式没有差别。这里发生了什么事?
发布于 2014-10-14 21:03:23
删除并创建一个新文件解决了问题。
这是从xib文件开始的结果,然后删除了它,支持以编程的方式完成整个过程。不知何故,在删除xib之后,一些委托设置被卡住了。
https://stackoverflow.com/questions/26351370
复制相似问题