开发者

Remove a drawn NSRect or other drawn object

开发者 https://www.devze.com 2023-03-08 18:35 出处:网络
How do I remove a drawn NSRect or other object other than drawing开发者_开发问答 another rect over it?Assuming you drew the rect in drawRect:, all you need to do would be to exclude the rect from the

How do I remove a drawn NSRect or other object other than drawing开发者_开发问答 another rect over it?


Assuming you drew the rect in drawRect:, all you need to do would be to exclude the rect from the list of objects to be drawn and call [view setNeedsDisplayInRect:theRect]. theRect here would be the CGRect equivalent.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号