Core Graphics 101: Lines, Rectangles, and Gradients

Core Graphics is a cool API on iOS. Developers can use it to customize their  UI with some neat effects. Most of this can be done without getting an artist involved… just tweak the code and see results instantly!

However, to many iOS developers – Core Graphics can be quite intimidating to begin with. Because it’s a fairly large API and it has plenty of snags to get caught in along the way – mastering its concepts can be quite a challenge.

Ray Wenderlich, founder of Razeware – a small iPhone development studio, has recently posted a very informative tutorial that takes the mystery out of Core Graphics. He has presented things in a step by step series of practical exercises.

His first article of the series, shows how to make a beautiful table view cell with Core Graphics. It covers how one can get started with Core Graphics, how to fill and stroke rectangles, how to draw gradients, and how to deal with 1 pixel-wide line issues.

In future articles in the series, he says that he will talk about how you can work on beautifying the rest of the app – the table view header, footer, and finishing touches.

Visit his blog post to see how you can get started and have some fun with Core Graphics on iOS!

Leave a Reply

Your email address will not be published. Required fields are marked *