ios开发app - iOS UIWindow移除问题
巴扎黑
巴扎黑 2017-04-18 09:41:43
0
1
734

我在项目代码里是这么写的


按我自己的想法是,UIWindow直接removeFromSuperView就直接可以了,但是在最上面的GCD里,直接调用remove并没有任何作用,于是我把window强行致空,正常了.但是在下面的代码中,我直接remove是生效的,我有点看不明白这里UIWindow的机制了,麻烦告诉下我,然后一般UIWindow添加删除的,正常的我们如何写?

巴扎黑
巴扎黑

reply all(1)
巴扎黑

This kind of direct UIWindow does not have a superView, so you cannot removeFromSuperViewmakeKeyAndVisibleSet hidden to yes and then set it to nil

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template