我正在使用自定义单元格创建表格视图。我已经使用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;
}
所以,任何人可以帮我。
在此先感谢。
确保电池的宽度不超过320假如碰到了类似的问题。 – Sreejith 2014-10-17 16:56:06
我也检查过..我保持它300以便在更安全的一面..但仍然不工作... – vaibhav 2014-10-18 06:32:43