Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 CGContextRef 在子视图中绘制线和点,然后我想重绘。如何清除子视图中的屏幕?谢谢。
试试这个:
CGContextClearRect(UIGraphicsGetCurrentContext(), rect);