I have a custom table view cell that is intended to draw a circle like the iPhone’s Mail.app does:

Instead, it draws like this:

Here’s my code:
CGContextRef context = UIGraphicsGetCurrentContext();
UIColor *grayColor = [UIColor grayColor];
[grayColor set];
CGContextStrokeEllipseInRect(context, CGRectMake(9, 10, 23, 23));
How can I make it not suck? 🙂
Edit: Ignore the fact that I omitted the code that draws the white background color.
What about it sucks? It doesn’t look close to, if not exactly like, the circle from Mail.
I was able to solve this by changing the
UIColorto the same color Apple uses,#E5E5E5:And changing the line width from the default
1.0to2.0:Tweaking the size was also necessary:
The final code looks like this:
And outputs like this: