是否可以调暗UIView但允许触摸其背后的元素?
问题描述:
您怎么会在顶部有一个灰色的覆盖层,但是却可以触摸其下方的按钮呢?
How would you have a grey overlay on top, but allow to touch buttons beneath it?
答
您可以将叠加层的userInteraction
设置为false
.
You can set userInteraction
of overlay to false
.