-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
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
通过storyboard创建后的布局问题 #6
Comments
@1149863953 但是你一旦运行其他屏幕尺寸,依然会有问题。这里改成一致只能解决对应的机型运行的适配问题 |
我分别用iphoneX和iphone 6 plus测试正常 |
@1149863953 你再用iphoneSE问题会更明显一点。在xib中的屏幕选项只是默认的xib尺寸,在viewDidLoad之后会根据设备的真实尺寸再更新frame,再看作者的源码,只是简单将superview的bounds复制给collectionView ,因此,当superview的尺寸,也就是xib中绑定的view发生变化时,collectinView还是保存着旧的frame,导致布局出错。 建议作者@wangrui460 在viewDidLayoutSubview中更新布局。 |
你可以提交给作者 |
kodeflow
added a commit
to kodeflow/WRCycleScrollView
that referenced
this issue
Jul 31, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用storyboard创建后,在不同的屏幕尺寸上运行,WRCycleScrollView无法自动适配,只会显示storyboard上的默认大小
The text was updated successfully, but these errors were encountered: