How to check current font size of UILabel?

后端 未结 3 1742
天涯浪人
天涯浪人 2021-01-25 06:05

I have 3 UILabels and I want to set same (the smallest one from all of 3 possibilities) font for all of them. What is the problem? I don\'t know how to check the cu

3条回答
  •  隐瞒了意图╮
    2021-01-25 06:53

    What I've found is that inside viewDidLoad() your constraints are not fully defined yet. You can try to do these calculations in another method for example viewWillAppear() or any other that suits you and is executed after viewDidLoad().

提交回复
热议问题