CGContextSaveGState和UIGraphicsPu

2018-07-06  本文已影响12人  lanmoyingsheng

一、CGContextSaveGState
保存图形上文的状态,包括颜色、线宽等。
二、UIGraphicsPushContext
官方文档:

Makes the specified graphics context the current context
将[新的]上下文设置为当前上下文。也可以起到保存上下文的功能,不过有CGContextRef产生。

上一篇 下一篇

猜你喜欢

热点阅读