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

不是正方形的icon是怎样处理的 #7

Open
nonstriater opened this issue Jun 15, 2017 · 1 comment
Open

不是正方形的icon是怎样处理的 #7

nonstriater opened this issue Jun 15, 2017 · 1 comment

Comments

@nonstriater
Copy link

No description provided.

@JohnWong
Copy link
Owner

假如你要绘制一个长方形,宽高比2:1。那么把这个图形等比例缩放,使水平方向填满字体空间,垂直居中放置。展示的时候给image view设置宽高比2:1,content mode是UIViewContentModeScaleAspectFill。

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