github地址:

https://github.com/ibireme/YYText

CocoaPods安装:

pod 'YYText'

 

1、YYLabel使用注意

    private lazy var contentLabel: YYLabel = {
        let label = YYLabel()
        // YYLabel要想自动换行,必须设置最大换行的宽度
        label.preferredMaxLayoutWidth = 200
        // 多行显示
        label.numberOfLines = 0
        
        return label
    }()

 

相关文章:

  • 2022-02-15
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2021-12-22
  • 2022-03-10
  • 2021-11-12
  • 2021-11-06
相关资源
相似解决方案