我需要通过文字标签自动调整SegmentedRow
的片段
我的想法是使用:
segmentedControl.apportionsSegmentWidthsByContent = true
但无法获得对segmentedControl
的引用。
答案 0 :(得分:0)
您需要访问cell
,然后使用类似于此的Eureka访问SegmentedRow
上的分段控件
<<< SegmentedRow<String>("segments"){
$0.cell.segmentedControl.apportionsSegmentWidthsByContent = true
}
我希望这可以帮助你,问候