5 // Created by John Hurley on 12/5/12.
9 #import "CircleStatusView.h"
11 @implementation CircleStatusView
13 - (id)initWithFrame:(CGRect)frame
15 self = [super initWithFrame:frame];
17 _color = [UIColor redColor];
18 // NSLog(@"Frame: w: %f, h: %f", self.frame.size.width, self.frame.size.height);
24 // Only override drawRect: if you perform custom drawing.
25 // An empty implementation adversely affects performance during animation.
26 - (void)drawRect:(CGRect)rect
32 - (void)drawRect:(CGRect)rect
34 CGContextRef context= UIGraphicsGetCurrentContext();
36 // NSLog(@"Frame: w: %f, h: %f", self.frame.size.width, self.frame.size.height);
38 _color= [UIColor redColor];
39 CGContextSetFillColorWithColor(context, _color.CGColor);
40 CGContextSetAlpha(context, 0.95);
41 CGContextFillEllipseInRect(context, CGRectMake(0,0,self.frame.size.width,self.frame.size.height));
43 CGContextSetStrokeColorWithColor(context, _color.CGColor);
44 CGContextStrokeEllipseInRect(context, CGRectMake(0,0,self.frame.size.width,self.frame.size.height));
49 @implementation ItemStatusView
51 - (id)initWithFrame:(CGRect)frame
53 self = [super initWithFrame:frame];
55 _color = [UIColor blueColor];
60 - (void)drawRect:(CGRect)rect
62 CGContextRef context= UIGraphicsGetCurrentContext();
64 // NSLog(@"Frame: w: %f, h: %f", self.frame.size.width, self.frame.size.height);
66 _color= [UIColor blueColor];
67 CGContextSetFillColorWithColor(context, _color.CGColor);
68 CGContextSetAlpha(context, 0.95);
69 CGContextFillEllipseInRect(context, CGRectMake(0,0,self.frame.size.width,self.frame.size.height));
71 CGContextSetStrokeColorWithColor(context, _color.CGColor);
72 CGContextStrokeEllipseInRect(context, CGRectMake(0,0,self.frame.size.width,self.frame.size.height));