Permalink
Browse files

Changed the CustomPropertyAnimation to draw a circle to make it more …

…obvious.
  • Loading branch information...
1 parent 5b70989 commit fd49060a2c77f9b6a8760bd481ae24a36861bf61 @neror committed Nov 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/Samples/CustomPropertyAnimation.m
@@ -45,7 +45,7 @@ + (BOOL)needsDisplayForKey:(NSString *)key {
- (void)drawInContext:(CGContextRef)ctx {
CGContextSaveGState(ctx);
- CGContextAddRect(ctx, CGRectInset(self.bounds, self.margin, self.margin));
+ CGContextAddEllipseInRect(ctx, CGRectInset(self.bounds, self.margin, self.margin));
CGContextSetStrokeColorWithColor(ctx, [[UIColor yellowColor] CGColor]);
CGContextSetLineWidth(ctx, 4.f);
CGContextDrawPath(ctx, kCGPathStroke);

0 comments on commit fd49060

Please sign in to comment.