问题描述
我正在使用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向下移动视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!