iOS presentViewController打破autolayout

时间:2014-10-02 07:45:18

标签: ios8 autolayout

我在ViewController上有一个TableView。

enter image description here

当我点击一行时,我使用以下方法加载PDF阅读器:

ReaderViewController *readerViewController = [[ReaderViewController alloc] initWithReaderDocument:document];
readerViewController.delegate = self; // Set the ReaderViewController delegate to self
readerViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
readerViewController.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:readerViewController animated:YES completion:nil];

enter image description here

但是当我回来时,我的布局似乎被打破了:

enter image description here

我尝试了以下解决方案:

Frame doesn't reflect auto layout constraints after dismissing modal view controller

iOS AutoLayout issue with ScrollView

但我仍然无法解决我的问题。您有什么推荐的吗?感谢

0 个答案:

没有答案