iOS:让UIView覆盖导航栏

当我们想做一个弹出式菜单时,想将导航栏也一起盖住不显示的话,可以用如下语句实现:

UIView* myView = /* 你自定义的view */;

UIWindow* currentWindow = [UIApplication sharedApplication].keyWindow;

[currentWindow addSubview:myView];

iOS:让UIView覆盖导航栏,布布扣,bubuko.com

文章来自:http://www.cnblogs.com/ilovewindy/p/3899143.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3