how to set and get cashape layer title. i am doing below.
here is my code:
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;