title: draw a stroke around the shape, core graphic
body: <p>I am drawing a shape like following :</p>
  
  <pre><code>- (void)drawRect:(CGRect)rect
  {
      // Draw a cross rectagle
      CGContextRef    context     =   UIGraphicsGetCurrentContext();
      CGContextSaveGState(context);
      CGContextMoveToPoint(context, 190, 0);
      CGContextAddLineToPoint(context, 220, 0);
      CGContextAddLineToPoint(context, 310, 90);
      CGContextAddLineToPoint(context, 310, 120);
      CGContextSetFillColorWithColor(context, [UIColor lightGrayColor].CGColor);
      CGContextFillPath(context);
      CGContextRestoreGState(context);
  }
  </code></pre>
  
  <p>I am getting a light-dark cross flag below</p>
  
  <p><img src="https://i.stack.imgur.com/LCQT6.png" alt="enter image description here"></p>
  
  <p>Now I would like to draw a stroke around the cross flag I have just drawn</p>
  
  <p>What should I do to achieve this. Please advice me on this issue. 
  Thanks.</p>