Category: Core Graphics

Draw Paths in UIViews

In a previous tip, I drew rectangles and circles in a UIView. This time, let’s add lines and curves using paths to draw some toast. Download the playground I set up for you.  I set up my code to do all the drawing in… Continue Reading “Draw Paths in UIViews”

Swift Swift: Making Background Images, Small Images and Custom UIViews with Autolayout

For those who have worked a bit with auto layout, there are two topics that seems to be a real challenge: using a custom UIView, especially when using Core Graphics , and displaying photos  either in the foreground or as a background. Both suffer… Continue Reading “Swift Swift: Making Background Images, Small Images and Custom UIViews with Autolayout”

Happy Pi Day! — Add a Pie to the Ring Graph

For those of us in the U.S. with a geekiness toward math March 15, 2015 at 9:26:53 is going to be the best pi day ever. As the date in the American calendar format is 3/14/15, the closest approximation to pi the mm dd… Continue Reading “Happy Pi Day! — Add a Pie to the Ring Graph”

Swift Swift: Basic Core Graphics for the Ring Graph

If you take a look at many of the cutting-edge designs for mobile User interfaces on Behance or Pinterest, you find a ring, arc or circle graph. The Apple Watch’s fitness activity app uses them extensively. Yet, if you scroll down the object library… Continue Reading “Swift Swift: Basic Core Graphics for the Ring Graph”