首页 > 其他 > 详细

presented 新控制器时如果控制器的view背景颜色alpha不为1时,为什么会变成黑色背景。

时间:2016-10-28 03:20:01      阅读:231      评论:0      收藏:0      [点我收藏+]

NavigationController and the View Controllers are designed in such a way that only one view controller may show at a time. When a new view controller is pushed/presented the previous view controller will be hidden by the system. So when you reduce the modal view‘s alpha you will possibly see the window‘s backgroundColor (the black color you see now).

If you want a translucent view to slide-in over the main view, you can add the view as the subView of main view and animate it using UIView Animations.

presented 新控制器时如果控制器的view背景颜色alpha不为1时,为什么会变成黑色背景。

原文:http://www.cnblogs.com/penfree/p/6006249.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!