title: IOS: draw an image in a view
body: <p>I have this code to color in a view:</p>
  
  <pre><code>UITouch *touch = [touches anyObject];   
      CGPoint currentPoint = [touch locationInView:drawImage];
  
      UIGraphicsBeginImageContext(drawImage.frame.size);
      [drawImage.image drawInRect:CGRectMake(0, 0, drawImage.frame.size.width, drawImage.frame.size.height)];
      CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapRound);
      CGContextSetLineWidth(UIGraphicsGetCurrentContext(), size);
  
        CGContextSetRGBStrokeColor(UIGraphicsGetCurrentContext(), r, g, b, a);
  
      CGContextBeginPath(UIGraphicsGetCurrentContext());
      CGContextMoveToPoint(UIGraphicsGetCurrentContext(), lastPoint.x, lastPoint.y);
      CGContextAddLineToPoint(UIGraphicsGetCurrentContext(), currentPoint.x, currentPoint.y);
      CGContextStrokePath(UIGraphicsGetCurrentContext());
      drawImage.image = UIGraphicsGetImageFromCurrentImageContext();
      UIGraphicsEndImageContext();
  </code></pre>
  
  <p>my problem is that I want to color not with a point, but I want to use a particular image that is repeated (as a png image)
  Is it possible?</p>