They say, that there is a Stack that saves graphic states. Well, I am not sure what they mean by that term. Does the CGContextSaveGState save the current drawing I made, or does it save the drawing settings I currently have, like color, line width, font size, etc.?
Share
The
CGContextSaveGStatedocumentation explicitly states what is saved in the state.So no, the drawing you have done is not saved (though it is not cleared, either). Instead, many of the graphics state parameters are saved. You can then restore to the state at which you saved by calling
CGContextRestoreGState.