iOS 8: UITableViewCell detail text not correctly updating

后端 未结 8 760
有刺的猬
有刺的猬 2020-12-30 02:32

tl;dr: Can I cause the detailTextLabel to have its size updated by the auto layout system in iOS on a value change?

Has anyone else had issues with the detailText l

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 02:56

    Having the same problem. My solution was to call [cell layoutSubviews] before returning the cell at the end of -tableView:cellFForRowAtIndexPath. This works for me, and I didn't find it necessary to override layoutSubviews in the cell subclass.

提交回复
热议问题