iOS

效果需求:

  当前ViewController中,添加一个自定义UIView。当添加CustomView时,背景变暗

Method1:

  在添加CustomView时,同步添加一个UIImage,设置其alpha为0.3.

喜欢请赞赏一下啦^_^

微信赞赏

支付宝赞赏

原文地址:https://www.cnblogs.com/share-iOS/p/6426951.html