Make NSView NOT clip subviews outside of its bounds

后端 未结 6 1173
感动是毒
感动是毒 2020-12-13 19:30

Is it possible to make an NSView not clip its subviews that are outside of the bounds? On iOS I would simply set clipsToBounds of my

6条回答
  •  暖寄归人
    2020-12-13 20:07

    I couldn't get any of these solutions to work. I think you may have to just change your view hierarchy so that views don't draw outside of their frame. You can create an intermediary view that doesn't do any drawing but has a larger frame to allow for a larger area.

提交回复
热议问题