效果需求:
当前ViewController中,添加一个自定义UIView。当添加CustomView时,背景变暗
Method1:
在添加CustomView时,同步添加一个UIImage,设置其alpha为0.3.
效果需求:
当前ViewController中,添加一个自定义UIView。当添加CustomView时,背景变暗
Method1:
在添加CustomView时,同步添加一个UIImage,设置其alpha为0.3.
转载于:https://www.cnblogs.com/share-iOS/p/6426951.html