【问题标题】:How do you customize the border of a UISegmentedControl in swift如何快速自定义 UISegmentedControl 的边框
【发布时间】:2015-10-29 09:21:10
【问题描述】:

我正在尝试将 UI 分段控件的上边框设为一种颜色,将 UISegmented 控件的下边框设为另一种颜色。我可以用 UIView 做到这一点,但由于某种原因,它不能与分段控件一起正常工作。

【问题讨论】:

    标签: swift border swift2 uisegmentedcontrol


    【解决方案1】:

    我建议您使用自定义分隔线图像。

    请参阅“Customizing appearance of UISegmentedControl”文章或“UIKit User Interface Catalog”主题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多