File tree 4 files changed +14
-6
lines changed
example/MPPlot.xcodeproj/project.xcworkspace/xcuserdata/mpow.xcuserdatad
4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ - (void)drawRect:(CGRect)rect
35
35
36
36
if (self.values .count && !self.waitToUpdate ) {
37
37
38
- if (self.detailView .superview )
39
- [self .detailView removeFromSuperview ];
40
38
41
39
for (UIView *subview in self.subviews ) {
42
40
[subview removeFromSuperview ];
Original file line number Diff line number Diff line change @@ -41,9 +41,6 @@ - (void)drawRect:(CGRect)rect
41
41
42
42
if (self.values .count && !self.waitToUpdate ) {
43
43
44
- if (self.detailView .superview )
45
- [self .detailView removeFromSuperview ];
46
-
47
44
((CAShapeLayer *)self.layer ).fillColor =[UIColor clearColor ].CGColor ;
48
45
((CAShapeLayer *)self.layer ).strokeColor = self.graphColor .CGColor ;
49
46
((CAShapeLayer *)self.layer ).path = [self graphPathFromPoints ].CGPath ;
@@ -140,6 +137,10 @@ - (CGPoint)pointAtIndex:(NSInteger)index{
140
137
141
138
- (void )animate {
142
139
140
+ if (self.detailView .superview )
141
+ [self .detailView removeFromSuperview ];
142
+
143
+
143
144
self.waitToUpdate =NO ;
144
145
145
146
gradient.hidden =1 ;
@@ -161,6 +162,8 @@ - (void)animate{
161
162
[button removeFromSuperview ];
162
163
}
163
164
165
+
166
+
164
167
buttons=[[NSMutableArray alloc ] init ];
165
168
166
169
CGFloat delay=((CGFloat )self.animationDuration )/(CGFloat )points.count ;
Original file line number Diff line number Diff line change @@ -52,11 +52,18 @@ + (id)plotWithType:(MPPlotType)type frame:(CGRect)frame{
52
52
return nil ;
53
53
}
54
54
55
- #pragma mark Common
56
55
57
56
58
57
58
+ - (void )drawRect : (CGRect )rect {
59
+
60
+ [super drawRect: rect];
61
+
62
+ if (self.detailView .superview )
63
+ [self .detailView removeFromSuperview ];
59
64
65
+
66
+ }
60
67
61
68
62
69
You can’t perform that action at this time.
0 commit comments