Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/95.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
像在iOS8 MailApp中一样向下滑动_Ios_Objective C_Modalviewcontroller_Ios8_Ecslidingviewcontroller 2 - Fatal编程技术网

像在iOS8 MailApp中一样向下滑动

像在iOS8 MailApp中一样向下滑动,ios,objective-c,modalviewcontroller,ios8,ecslidingviewcontroller-2,Ios,Objective C,Modalviewcontroller,Ios8,Ecslidingviewcontroller 2,我想实现的能力刷下模式VC几乎结束,并与刷上-返回的地方。我试着用缩放效果来做,但我有自定义的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几乎结束,并与刷上-返回的地方。我试着用缩放效果来做,但我有自定义的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

我认为这种新的演示风格可以满足您的需求

如果显示,它不会在模式后的上一个VC之后隐藏,但会保留在后面

vc.modalPresentationStyle=UIModalPresentationOverCurrentContext

希望这有帮助。 G