Skip to content

Commit 52e3c47

Browse files
author
David Benko
committed
Update For Blog Post
1 parent 86ab511 commit 52e3c47

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

iOS/TutorialView.m

100755100644
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ - (void)drawPath{
9797
return;
9898
};
9999

100+
//Remove old layers
101+
for(CALayer *layer in self.layer.sublayers)
102+
if([layer isMemberOfClass:[CAShapeLayer class]])
103+
[layer removeFromSuperlayer];
104+
100105
bool drawAnimatedPath = true;
101106
bool drawNonAnimatedPath = true;
102107

0 commit comments

Comments
 (0)