一句代码,圆角风雨无阻。A Category to make cornerRadius for UIImageView have no Offscreen-Rendered, be more efficiency.
Home Page:http://zyden.vicp.cc/zycornerradius/
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
luo-h opened this issue 6 years ago · comments
UIGraphicsBeginImageContextWithOptions(size, NO, scale);
scanle = 2
我是给btn.imageView设置的圆角和边框,如果直接给btn setImage不会崩溃,如果给btn加载网络图片就会崩溃