문제

I'm trying to build a blurred, iOS 7 like NSView, which blurs the background.

So far it's working fine by applying a Gaussian background filter to the layer-backed NSView. The problem is that not only the area right underneath the view gets blurred, but the whole parent view area is blurred.

Layer-backing the parent view doesn't help. Any idea on how to only blur the immediate area of the smaller subview?

도움이 되었습니까?

해결책

Apparently you have to set

[blurredView.layer setMasksToBounds:YES];.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top