I am creating a table view with a custom cell. I used xib files to create both. My table works the way I wanted it, but there is only one problem: the cells in the View table do not display the disclosure indicator.
The indicator is displayed in the xib file after installing it from the attribute inspector, but not in the simulator.
I added it programmatically as well
- (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;
}
So someone please help me.
Thanks in advance.
source
share