开发者

Remove a drawn NSRect or other drawn object

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜