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

stretchableImageWithLeftCapWith:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight | 东隅已逝/桑榆非晚 #25

Open
h1z3y3 opened this issue Apr 23, 2021 · 0 comments

Comments

@h1z3y3
Copy link
Owner

h1z3y3 commented Apr 23, 2021

https://h1z3y3.me/posts/stretchableimagewithleftcapwidth/

  • (UIImage *) stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight 这个函数是UIImage的一个类函数,它的功能是创建一个内容可拉伸,而边角不拉伸的图片。两个参数的含义分别为:不拉伸区域的宽度、不拉伸区域的高度。 根据设置的宽度和高度,在像素点((leftC……
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant