UITableViewCell's contentView's width with a given accessory type

前端 未结 3 1616
无人共我
无人共我 2020-12-09 03:19

On an iPhone, how do you figure out the width of a table view cell\'s content view when it is showing a certain accessory view (disclosure indicator, etc)?

I need th

3条回答
  •  [愿得一人]
    2020-12-09 04:00

    I believe the UITableViewCell's contentView property is the view that contains your labels etc., so the width of that should be your available size to use.

提交回复
热议问题