注意present/push新控制器的问题

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.

posted @ 2016-10-28 00:23  飞常精彩2008  阅读(182)  评论(0编辑  收藏  举报