In tableView:cellForRowAtIndexPath:
I have the following:
cell.textLabel.text = @\"label\";
cell.detailTextLabel.text = @\"detail\";
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier: CellIdentifier];
Make sure to set the default text content, and the width is width is wide enough to actually display the text.
Set the table View Cell Style to Subtitle in Storyboard
and write this code to configure you cell
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:BasicCellIdentifier] autorelease];
}