1

我想实现将模态 VC 向下滑动到最后的能力,然后向上滑动 - 返回到该位置。我尝试使用ECSlidingViewController(具有缩放效果)来做到这一点,但我有自定义 tabBar,但我做不到。我试着让它更容易:

CGRect frame = self.view.frame; //or self.parentViewController.view.frame 
    frame.origin.x -= 50;
    frame.origin.y -= 50;
    self.view.frame = frame;

VC 改变了位置,但在它下面我看到白色(或黑色)屏幕,没有我推动的 vc。如何实现我想要的功能?

(我使用的是 Xcode 5/iOS 7.1)

4

1 回答 1

0

I think this new Presentation Style allow what you are looking for.

It does not hides after previous VC after the modal if shown, but it remains behind.

vc.modalPresentationStyle = UIModalPresentationOverCurrentContext

Hope this helps. G

于 2014-09-23T20:21:53.887 回答