How To Draw More Precise Lines using Core Graphics and CALayer

Posted by user308444 on Stack Overflow See other posts from Stack Overflow or by user308444
Published on 2010-04-14T00:20:05Z Indexed on 2010/04/14 0:23 UTC
Read the original article Hit count: 717

Filed under:
|

Hello I am having a hard time making this UI element look the way I want (see screenshot). Notice the image on the right--how the line width and darkness looks inconsistent compared to the image on the left (which happens to be a screen grab from safari) where the border width is more consistent. How does apple make their lines so perfect?

I'm using a CALayer and the Core Graphics API to draw the image on the right. Is it possible to draw such perfect lines with the standard apis?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about objective-c