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

看到简介,那个已知问题,我是身同感受啊 #1

Open
ZCHWorld opened this issue Feb 13, 2019 · 4 comments
Open

看到简介,那个已知问题,我是身同感受啊 #1

ZCHWorld opened this issue Feb 13, 2019 · 4 comments

Comments

@ZCHWorld
Copy link

公司要求APP所有界面都加水印,我自定义了一个watermark的视图,addsubview到keywindow下,再把watermark的userinteractionenabled设置成NO。这样需求大功告成!然而,后续用户反馈,水印挡住了某些点击事件(调用相册时,分享文件时),我用xcode的Debug view hierarchy查看,这些被挡住的界面都属于UITransitionView,就是系统的界面和keywindow的子视图会有莫名的BUG,真是让人头大。网上关于UITransitionView的资料很少,apple developer里甚至没有,愁死人啊。不知阁下有没有继续研究下去呢?

@ZCHWorld
Copy link
Author

我通过Debug view hierarchy进一步发现,系统视图里的那些内容(系统相册的图片略缩图)不在UIWindow里,所以点击不了。而我们自定义的一些view,都是在UIWindow里,所以不影响。

@yituwangpeng
Copy link

已知问题是否有最新解决方案?

@ZCHWorld
Copy link
Author

已知问题是否有最新解决方案?

没找到正规途径处理,只能通过逻辑避开,监听打开官方视图前移动水印视图到底层,关闭官方视图后再重现水印

@LucioLee
Copy link

LucioLee commented Sep 2, 2020

已知问题是否有最新解决方案?

没找到正规途径处理,只能通过逻辑避开,监听打开官方视图前移动水印视图到底层,关闭官方视图后再重现水印

有什么好的处理方法吗?

Repository owner deleted a comment Feb 26, 2024
Repository owner deleted a comment from rookiecdn Mar 4, 2024
Repository owner deleted a comment from jacky-xbb Mar 4, 2024
Repository owner deleted a comment from Idris933 Mar 13, 2024
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

6 participants
@yituwangpeng @LucioLee @ZCHWorld and others