Authored by Justin R. Miller

refs #166: do shape hit detection based on painted areas

... ... @@ -134,6 +134,11 @@
#pragma mark - Accessors
- (BOOL)containsPoint:(CGPoint)thePoint
{
return CGPathContainsPoint(shapeLayer.path, nil, thePoint, [shapeLayer.fillRule isEqualToString:kCAFillRuleEvenOdd]);
}
- (void)setLineColor:(UIColor *)newLineColor
{
if (lineColor != newLineColor)
... ...
... ... @@ -435,6 +435,11 @@
#pragma mark - Accessors
- (BOOL)containsPoint:(CGPoint)thePoint
{
return CGPathContainsPoint(shapeLayer.path, nil, thePoint, [shapeLayer.fillRule isEqualToString:kCAFillRuleEvenOdd]);
}
- (void)closePath
{
if ([points count])
... ...