Multiline UIButton and autolayout

后端 未结 16 1521
无人共我
无人共我 2020-12-03 13:08

I have created a view controller that looks like this:

\"enter

I want the two

16条回答
  •  难免孤独
    2020-12-03 13:47

    tweaks for Swift 3.1

    intrisicContentSize is a property instead of a function

    override var intrinsicContentSize: CGSize {
        return self.titleLabel!.intrinsicContentSize
    }
    

提交回复
热议问题