[英]cashape layer Title
如何设置和获取cashape图层标题。 我在下面做。
这是我的代码:
if(idx>1)
{
if (CGPathContainsPoint(path, &transform, point, 0)) {
[shapelayer setLineWidth:self.lineWidth+5];
[shapelayer setStrokeColor:self.pointSelectedCircleColor.CGColor];
NSString* title =shapelayer.name;
// NSLog(@"%@",shapelayer.name);
} else {
[shapelayer setZPosition:0];
[shapelayer setLineWidth:self.circleWidth];
[shapelayer setStrokeColor:self.pointCircleColor.CGColor];
}
}
}];
return title;
试试这个fahad
__block NSString * titleStr = @“”;
那是因为您可以使用形状图层标题get和setcommly进行设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.