Quick Silver Challenge Solution


#1

Added to BNRDrawView.m properties

@property(nonatomic, getter=isMenuVisible) BOOL menuVisible;

And an if statement to strokeLine:

- (void)strokeLine:(BNRLine *)line { if (!self.menuVisible) { UIBezierPath *bp = [UIBezierPath bezierPath]; bp.lineWidth = 10; bp.lineCapStyle = kCGLineCapRound; [bp moveToPoint:line.begin]; [bp addLineToPoint:line.end]; [bp stroke]; }