CoreGraphics Flashcards
1
Q
In Core Graphics:
How can you get the context?
A
Using UIGraphicsGetCurrentContext.
CGContextRef ctx = UIGraphicsGetCurrentContext();
2
Q
In Core Graphics:
What function is used to draw an arc of a circle?
A
CGContextAddArc (context, x, y, radius, startAngle, endAngle, clockwise)
3
Q
In Core Graphics:
What is the function used to draw the current path?
A
CGContextDrawPath (context, mode)
4
Q
In Core Graphics:
What function is used to draw a rectangle?
A
CGContextAddRect (context, rect)