UIView group opacity in single view heirachy

后端 未结 2 385
予麋鹿
予麋鹿 2021-01-02 15:17

I am writing a UI library in which i would like to be able to have the alpha of the UIViews as if the UIViewGroupOpacity info.plist ket was set. See following links:

<
2条回答
  •  臣服心动
    2021-01-02 16:12

    For iOS 7.0 and later:

    Since iOS 7.0, this can be controlled for each CALayer individually through the allowsGroupOpacity property. By setting it to YES, you get the same behavior as if UIViewGroupOpacity was set, but just for that particular layer.

提交回复
热议问题