CAGradientLayer bounds not changing

后端 未结 1 974
南笙
南笙 2021-01-28 01:09

I have a CAGradientLayer which is added to a UIVIew, when I rotate the device the view that it is added to increases in size (with autolayout) however

相关标签:
1条回答
  • 2021-01-28 02:02

    You could override - (void)layoutSubviews in your UIView subclass and then update the layers frame.

    0 讨论(0)
提交回复
热议问题