title: UIBezierPath Not Drawing
body: <p>I'm trying to implement a method which draws a line based on gesture recognition but I can't get the UIBezierPath to display. I know the gesture recognizer is functioning because I print to log every time the method is activated. What is also confusing me is that the blue line that I draw previous to trying to draw the BezierPath displays but the BezierPath doesn't. Even if I manually add arbitrary points nothing is drawn, such as: </p>
  
  <pre><code>[myPath addLineToPoint:CGPointMake(50, 50)];
  </code></pre>
  
  <p>Here is the code in my UIView:</p>
  
  <pre><code>- (void)drawRect:(CGRect)rect
  {
  
  CGContextRef ctx = UIGraphicsGetCurrentContext(); 
  CGContextSetRGBStrokeColor(ctx, 0, 0, 1.0, 1); 
  CGContextMoveToPoint(ctx, 0, 150);
  CGContextAddLineToPoint( ctx, 480, 150);
  CGContextStrokePath(ctx);
  
  [myPath addLineToPoint:CGPointMake(50, 50)];
  [myPath stroke];
  }
  
  - (IBAction)handlePan:(UIPanGestureRecognizer *) recognizers {
  
  CGPoint translation = [recognizers translationInView:self];
  NSLog(@"Logged");
  
  [myPath addLineToPoint:CGPointMake(translation.x, translation.y)];
  [self setNeedsDisplay];
  }
  </code></pre>
  
  <p>Thanks for any help!</p>