無論如何就是找不到方法??
/**
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;
原來是因?yàn)?Swift里省略了頭部image,調(diào)用這個方法要這樣調(diào)用
image.ByRoundCornerRadius(5)