Search code examples
iosinterface-buildertic-tac-toe

How to draw a line programmatically?


The game tic tac toe seems to be a nice exercise for me.

I want to draw the tic tac toe grid first.
Interface Builder does not have a built in class for drawing lines.

Therefore my question is: Which class can I use to draw the lines of the grid programmatically?


Solution

  • Drawing in iOS can either be done with Core Graphics or Quartz 2D.