UITableViewCell not showing detailTextLabel.text - Swift

前端 未结 11 2423
慢半拍i
慢半拍i 2020-12-14 06:45

The detail (subtitle) text does not appear. The data are available, though, because when a println() call is added, it prints Optional(\"data\") to the console with the expe

11条回答
  •  孤街浪徒
    2020-12-14 07:17

    If you are setting the text to nil somewhere when you try to set it to a non-nil value the actual view that contains the text will be missing. This was introduced in iOS8. Try setting to an empty space @" " character instead.

    See this: Subtitles of UITableViewCell won't update

提交回复
热议问题