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.
描画されたNSRectまたは他のオブジェクトを、その上に別のrectを描画する以外に削除するにはどうすればよいですか?
で rect を描画したと仮定するとdrawRect:、描画するオブジェクトのリストから rect を除外して を呼び出すだけで済みます[view setNeedsDisplayInRect:theRect]。theRectここはCGRect同等です。
drawRect:
[view setNeedsDisplayInRect:theRect]
theRect
CGRect