问题描述
我正在通过调用
[self.navigationController presentViewController:controllerA animated:YES completion:nil];
我通过致电
[self.presentingViewController dismissViewControllerAnimated:YES completion:nil]
完成消除操作后,上一个navigationController中的UITableView不会像调用presentViewController之前的那样上下滚动.解雇后是否需要做一些事情以使UITableView再次滚动.
After the dismiss is done the UITableView in in the previous navigationController does not scroll up and down where as it did before the presentViewController was called. Do I need to do something after dismiss to make the UITableView scroll again.
推荐答案
问题是我在UITableView中有一个Header View,我需要从Xib文件中取消选中"Use Autolayout"(在File Inspector部分中).当我从Xib加载Header时.
The problem was that I had a Header View in the UITableView and I needed to uncheck the "Use Autolayout" (in the File Inspector section) from the Xib file as I was loading the Header from a Xib.
这篇关于解散presentViewController后,导航控制器内的UITableView无法滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!