Skip to content
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

有个疑问,如果设计图是iPhoneX的,如何适配非刘海屏(6,7,8等) #24

Closed
TML007 opened this issue Nov 25, 2022 · 3 comments
Assignees

Comments

@TML007
Copy link

TML007 commented Nov 25, 2022

因为宽度都是375,但是高度是不同的,按照iPhoneX的标注,在iPhone 8上面显示不太正常。

@LinXunFeng
Copy link
Owner

按道理说是不会有影响的,直接使用 ~ 就好了,你说的显示不太正常具体是指哪个地方?导航栏还是主体区域?

@LinXunFeng LinXunFeng self-assigned this Nov 25, 2022
@TML007
Copy link
Author

TML007 commented Nov 25, 2022

image
例如demo,宽度都是375,实际适配后的效果不是很好。

@LinXunFeng
Copy link
Owner

LinXunFeng commented Nov 25, 2022

高度不一致,垂直部分能显示的内容量必然也是不一样的。

你说的效果不好是指最底下黑色那个吗?那个是直接在 storyboard 里直接紧贴底部的,与适配无关,忽略它还有哪处是效果不好的呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants