Open jiangliansong19 opened 3 years ago
Execuse me,
I have set contentView.frame = CGRect(0, 10, 100, 100). But after a Popover transform in func show(), it's contentView has changed frame. Then I find:
contentView.frame = CGRect(0, 10, 100, 100)
func show()
override open func layoutSubviews() { super.layoutSubviews() self.contentView.frame = self.bounds }
scale tranform will execute this code, and contentView.frame will be changed.
Thank you!
Execuse me,
I have set
contentView.frame = CGRect(0, 10, 100, 100)
. But after a Popover transform infunc show()
, it's contentView has changed frame. Then I find:scale tranform will execute this code, and contentView.frame will be changed.
Thank you!