【发布时间】:2015-07-22 05:17:54
【问题描述】:
@property (nonatomic, assign) CGMutablePathRef path;
我试过了
self.path = CGPathCreateMutable();
CGPathAddEllipseInRect(self.path, nil, elipseRect);
CGPathAddRect(self.path, nil, view.bounds);
CAShapeLayer *layer = [CAShapeLayer layer];
layer.path = self.path;
layer.fillRule = kCAFillRuleEvenOdd;
view.layer.mask = layer;
[self setupButton];
CGPathCloseSubpath(self.path);
. . .
. . .
CGPathRelease(self.path);
解析时释放路径显示如下错误
调用者此时不拥有的对象的引用计数减少错误。
【问题讨论】:
标签: ios objective-c core-graphics