gpt4 book ai didi

ios - 如何在 SegmentedRow 上设置 apportionsSegmentWidthsByContent

转载 作者:行者123 更新时间:2023-11-30 13:16:04 24 4
gpt4 key购买 nike

我需要让 SegmentedRow 的各段通过其文本标签自动调整大小。
我的想法是使用:

segmentedControl.apportionsSegmentWidthsByContent = true

但无法获取对 segmentedControl 的引用。

最佳答案

您需要访问cell,然后使用Eureka访问SegmentedRow上的分段控件,如下所示

    <<< SegmentedRow<String>("segments"){
$0.cell.segmentedControl.apportionsSegmentWidthsByContent = true
}

希望这对您有帮助,问候

关于ios - 如何在 SegmentedRow 上设置 apportionsSegmentWidthsByContent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38200837/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com