如何在uiviewcontroller中添加窗口视图 [英] how to add a view over window in uiviewcontroller
本文介绍了如何在uiviewcontroller中添加窗口视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以从uiviewcontroller在窗口上添加子视图,然后将其删除?
Is it possible to add a subview over the window from a uiviewcontroller and then removing that also?
谢谢
Pankaj
Thanks Pankaj
推荐答案
不确定你的意思...
Not sure what you mean...
[self.view addSubview:yoursubview];
[yoursubview removeFromSuperview];
在窗口上:
[[[UIApplication sharedApplication] keyWindow] addSubview:yourview];
这篇关于如何在uiviewcontroller中添加窗口视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文