我正在创建一个带有自定义单元格的表视图。我使用xib文件来创建它们。我的表格按照我的要求执行,但只有一个问题:表视图的单元格没有显示披露指示器。
在属性检查器中设置后,xib文件中显示了指示器,但模拟器中没有显示。
我也尝试通过编程方式添加指示器。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
InboxTableViewCell * cell = (InboxTableViewCell *)[tableView dequeueReusableCellWithIdentifier:[InboxTableViewCell reuseIdentifier]];
if (cell == nil)
{
[[NSBundle mainBundle] loadNibNamed:customCellName owner:self options:nil];
cell = _tblVIewInboxCell;
_tblVIewInboxCell = nil;
}
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
cell.lblTitleInbox.text = @"Title";
cell.lblSubTitleInbox.font = [UIFont fontWithName:@"Verdana" size:16.0];
cell.lblSubTitleInbox.text = @"SubTitle";
cell.lblSubTitleInbox.font = [UIFont fontWithName:@"Verdana" size:12.0];
return cell;
}
所以能否有人帮助我。
提前感谢。