title: How to draw a smooth edges circle in ios
body: <p>Hi in my application i have to draw a circle on view. For that i used below code  </p>
  
  <pre><code>CGContextRef contextRef = UIGraphicsGetCurrentContext();
          CGContextSetLineWidth(contextRef, 2.0);
          CGContextSetRGBStrokeColor(contextRef,red,green,blue, 1.0);
  
          CGRect circlePoint = (CGRectMake(rect.origin.x,rect.origin.y,rect.size.width,rect.size.height));
  
          CGContextStrokeEllipseInRect(contextRef, circlePoint);
  </code></pre>
  
  <p>i am getting the circle also but i am getting the circle in this manner<img src="https://i.stack.imgur.com/dsmwo.png" alt=" if you observer the image the thickness of the line is not uniform but i need the circle with uniform line thickness"></p>
  
  <p>if any one have any idea please let me know. Thanks in advance please help.</p>