Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

毛玻璃 #13

Open
SPStore opened this issue Nov 12, 2017 · 0 comments
Open

毛玻璃 #13

SPStore opened this issue Nov 12, 2017 · 0 comments

Comments

@SPStore
Copy link

SPStore commented Nov 12, 2017

你好,愿不愿意跟我一起探讨一下对话框的毛玻璃问题呢?因为我发现无论是系统,还是微信,微博等,它们的毛玻璃都很漂亮。我说的漂亮是什么意思呢,意思就是毛玻璃不会受到蒙板的影响,我看你的蒙板设置的alpha值是0.3,其实0.3过低了,系统设置的是黑色0.4透明,我看过系统的层级关系图,毛玻璃并未受到蒙板的任何影响,我自己最近也封装了一个https://github.com/SPStore/SPAlertController。
但是不管我怎么设置毛玻璃,因为蒙层的影响,都会偏黑色,我看你的也同样如此。这个问题我已经想了几天几夜了,网上找资料也没人解决过,其实用第三方不是不能实现,但是我不想依赖第三方,而且系统用的也是iOS8自带的UIBlurEffect,只是我不知道系统是如何做到的,我想过用运行时去交换UIVisualEffectView的某个方法,但那么多私有方法,我也不知该重写哪一个。 微信微博和系统的毛玻璃效果都是一致的,能否一起研究一下,我实在遇到困难了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant