【发布时间】:2016-06-08 01:07:27
【问题描述】:
【问题讨论】:
-
查看这个链接stackoverflow.com/questions/10167266/…也许对你有帮助。
-
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.imageView.bounds byRoundingCorners:(UIRectCornerBottomLeft | UIRectCornerBottomRight)cornerRadii:CGSizeMake(10.0, 10.0)]; CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init]; maskLayer.frame = self.imageView.bounds; maskLayer.path = maskPath.CGPath; self.imageView.layer.mask = maskLayer;
-
我使用了那个代码,但不是圆形的底部..看看我在底部的图像
-
当这段代码在 iphone6 imageview 上运行时,在正确的位置留下了一些宽度空间..
标签: ios objective-c