CAGradientLayer not autoresizing

后端 未结 1 566
后悔当初
后悔当初 2021-01-22 17:47

I added a CAGradientLayer on my UIImageView. I\'ve set the autoresizing mask on the UIImageView to be flexible all across border (flexible height, width..etc). However the grad

相关标签:
1条回答
  • 2021-01-22 18:17

    CALayer does not support auto resizing on iOS. You must implement your resizing manually in layoutSubviews or wherever appropriate.

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