我可以帮忙翻译。这段文字的意思是:有一个包含表格底部视图的tableView。在viewDidload方法中:
在viewWillLayoutSubviews中我看到的是:
<UIView: 0x6c87a70; frame = (0 325; 320 3); autoresize = TM+BM; layer = <CALayer: 0x6c87aa0>>
<UIImageView: 0x6c87b60; frame = (31 0; 257 3); autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x6c87ba0>> - table_pull_refresh_footer.png
在viewWillLayoutSubviews中我看到的是:
<UIView: 0x6c87a70; frame = (0 325; 320 3); autoresize = TM+BM; layer = <CALayer: 0x6c87aa0>>
<UIImageView: 0x6c87b60; frame = (31 0; 320 3); autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x6c87ba0>> - table_pull_refresh_footer.png
那么为什么UIImageView突然变大了?父视图的大小并没有改变。它仍然是320 3。
viewWillLayoutSubviews
在记录视图之前是否调用了[super viewWillLayoutSubviews]
? - vikingosegundo