We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在 iPad Split 模式下会产生布局异常的问题,如下视频,拖动顶部的三个点进入 Split 模式,然后点击 App 退出 Split 模式:
究其原因问题产生在下面这段代码上:
- (void)layoutSubviews { [super layoutSubviews]; if (CGSizeEqualToSize(self.originSize, CGSizeZero)) return; // 解决xib加载时导致的布局错误问题 if (!CGSizeEqualToSize(self.bounds.size, self.originSize)) { [self updateScrollViewAndCellSize]; } }
在不 reload 的情况下,self.originSize 不会发生变化:
reload
self.originSize
{300, 300}
self.bounds.size
{150, 150}
updateScrollViewAndCellSize
目前我暂时去掉了 CGSizeEqualToSize(self.bounds.size, self.originSize) 判断,经过 QA 测试暂未发现异常
CGSizeEqualToSize(self.bounds.size, self.originSize)
The text was updated successfully, but these errors were encountered:
修复布局改变导致的显示异常问题 #31
d936d43
No branches or pull requests
在 iPad Split 模式下会产生布局异常的问题,如下视频,拖动顶部的三个点进入 Split 模式,然后点击 App 退出 Split 模式:
test.mp4
究其原因问题产生在下面这段代码上:
在不
reload
的情况下,self.originSize
不会发生变化:self.originSize
为{300, 300}
self.bounds.size
变为{150, 150}
,此时调用updateScrollViewAndCellSize
self.bounds.size
变为{300, 300}
,此时没有调用updateScrollViewAndCellSize
目前我暂时去掉了
CGSizeEqualToSize(self.bounds.size, self.originSize)
判断,经过 QA 测试暂未发现异常The text was updated successfully, but these errors were encountered: