Learning iOS Development

Access CGContext in iOS for drawing

Explore how to Get CGContext to Customize View

Photo by bruce mars on Unsplash

In the Android world, we draw on the Canvas. In the iOS world, the similar object one use for drawing is CGContext (CG = Core Graphic). But there’s one difference, CGContext is not just accessible during draw function. Leads me to explore a little on it.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store