Why is detailTextLabel not visible?
Or if you are using Interface Builder, change the Style
cell property to Subtitle
. :)
In order to solve it programmatically:
let cell = UITableViewCell(style: .subtitle, reuseIdentifier: "identifier")
The detailTextLabel
is not displayed for cells
with the UITableViewCellStyleDefault
style. init
the UITableViewCell
with UITableViewCellStyleSubtitle
instead and you should see your detailTextLabel
.
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];