I'm brand new to using UIBezierPaths to draw shapes. All of the examples I have found so far involve first subclassing a view, then overriding the
Another way to draw bezier paths without using drawRect is to use CAShapeLayers. Set the path property of a shape layer to a CGPath created from the bezier path. Add the shape layer as a sublayer to your view's layer.
UIBezierPath *shape = [UIBezierPath bezierPathWithOvalInRect:self.view.bounds]; CAShapeLayer *shapeLayer = [CAShapeLayer layer]; shapeLayer.path = shape.CGPath; shapeLayer.fillColor = [UIColor colorWithRed:.5 green:1 blue:.5 alpha:1].CGColor; shapeLayer.strokeColor = [UIColor blackColor].CGColor; shapeLayer.lineWidth = 2; [self.view.layer addSublayer:shapeLayer];