刚刚Swift混编OC使用YYKit 分类方法UIImage+YYAdd

无论如何就是找不到方法🤣

/**
 Rounds a new image with a given corner size.
 
 @param radius  The radius of each corner oval. Values larger than half the
                rectangle's width or height are clamped appropriately to half
                the width or height.
 */
- (nullable UIImage *)imageByRoundCornerRadius:(CGFloat)radius;

原来是因为,Swift里省略了头部image,调用这个方法要这样调用

image.ByRoundCornerRadius(5)

我可太菜了哈哈哈,记录一下

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容