<分区>
我正在使用 UIScrollView 中的 CATiledLayer 尝试一些东西。
不知何故,UIScrollView 中的 UIView 的大小变大了。我需要查明到底是什么导致了这种调整。
Is there a way to detect when the size of UIView(either frame, bounds) or the contentSize of UIScrollView is resized?
我试过了
override var frame: CGRect {
didSet {
println("frame changed");
}
}
在 UIView 子类中,
但它只在应用程序启动时调用一次,尽管 UIView 的大小随后会调整大小。