ModalViewControllerAnimated向下移动视

ModalViewControllerAnimated向下移动视

本文介绍了dismissModalViewControllerAnimated向下移动视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用dismissModalViewControllerAnimated关闭我的MFMailComposeViewController.我遇到的问题是,邮件视图后面的视图在返回视图时会向下移动一点.

I'm using dismissModalViewControllerAnimated to dismiss my MFMailComposeViewController. The problem I'm having is that the view behind the mail view gets shifted down a bit when it comes back into view.

我无法弄清楚为什么会发生这种情况,有什么想法吗?

I haven't been able to figure out why this is happening, any thoughts?

推荐答案

在我调用dismissModalViewControllerAnimated之后,我抓住了视图的框架并将原点设置回(0,0)

After I call dismissModalViewControllerAnimated I grab my view's frame and set the origin back to (0,0)

它可以工作,但是如果有人想出一个更好的答案我会接受它,或者如果我发现更好的东西了,我将对此进行编辑,这似乎很愚蠢.

It works but this seems silly to have to do so if anyone comes up with a better answer I'll accept it or if I figure something better out I'll edit this.

这篇关于dismissModalViewControllerAnimated向下移动视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 17:34