Ios UIModalPresentationFormSheet不显示tableView
我正在尝试实现我的设置viewcontroller的模式演示。这可以正常工作,但在显示时,它不会显示SettingsViewController中的tableView。它只显示一个灰色背景和导航栏。为什么它没有在SettingsViewController中显示我的tableViewIos UIModalPresentationFormSheet不显示tableView,ios,objective-c,uitableview,Ios,Objective C,Uitableview,我正在尝试实现我的设置viewcontroller的模式演示。这可以正常工作,但在显示时,它不会显示SettingsViewController中的tableView。它只显示一个灰色背景和导航栏。为什么它没有在SettingsViewController中显示我的tableView SettingsViewController *settingController = [[SettingsViewController alloc] initWithNibName:nil bundle:
SettingsViewController *settingController = [[SettingsViewController alloc] initWithNibName:nil bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:settingController];
navigationController.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:navigationController animated:YES completion:NULL];
很可能您没有在interface builder文档中正确配置表视图。检查self.tableView是否为零。是否检查设置视图的framex,y?并发布更多与您的UITableView相关的代码,以便我们看到哪里出了问题。tableview是通过故事板添加的