How can I have an opaque UIView as a subview of a semi-transparent UIView?

前端 未结 5 1505
时光说笑
时光说笑 2020-12-24 06:47

I have a UIView with an alpha of 0.5 which I add as a subview to my primary view in order to gray-out everything else. I want to add an additional UIView to this gray UIVie

5条回答
  •  时光取名叫无心
    2020-12-24 07:25

    Don't put it inside the semi-transparent view. Make it a sibling to semi-transparent view and put it over it using z-ordering.

提交回复
热议问题