Search code examples
iosswiftuitableviewios8-today-widgettoday-extension

Setting detailTextLabel in TodayExtension's TableViewCell failed


I try to display a text in the detailTextLabel of the tableView in my today extension. The code seems to be correct, but I don't know why it's not displayed in the cell.

I set the text like in the normal tableView in the iOS app ( cell.detailTextLabel?.text = "Test")`, but don't know why it's not working. Hope you can help me.


Solution

  • Set Attributes Inspector -> Style to Right Detail for example to fix this problem

    enter image description here