CoreGraphics Flashcards

1
Q

In Core Graphics:

How can you get the context?

A

Using UIGraphicsGetCurrentContext.

CGContextRef ctx = UIGraphicsGetCurrentContext();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In Core Graphics:

What is the function used to draw the current path?

A

CGContextDrawPath (context, mode)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In Core Graphics:

What function is used to draw a rectangle?

A

CGContextAddRect (context, rect)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly