If you are looking for help on how to stroke or fill up a pattern, then You have landed at the right place. A pattern can be fill up in different shapes like rectangle, circle and so on. NOTE: A reader of this post is assumed to have prior knowledge of custom drawing in iOS's UIView, CGContext, and Quartz 2D basics The Sample code demonstrates the following things: • Creation of 3 Different kinds of patterns using CGPattern • In the Sample, tap "Change Pattern" to switch to next pattern • Use the slider, to increase the size of pattern cell A Detailed explanation of the Sample project can be found here http://t.co/ESEU1OK