Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios UIModalPresentationFormSheet不显示tableView_Ios_Objective C_Uitableview - Fatal编程技术网

Ios UIModalPresentationFormSheet不显示tableView

Ios UIModalPresentationFormSheet不显示tableView,ios,objective-c,uitableview,Ios,Objective C,Uitableview,我正在尝试实现我的设置viewcontroller的模式演示。这可以正常工作,但在显示时,它不会显示SettingsViewController中的tableView。它只显示一个灰色背景和导航栏。为什么它没有在SettingsViewController中显示我的tableView SettingsViewController *settingController = [[SettingsViewController alloc] initWithNibName:nil bundle:

我正在尝试实现我的设置viewcontroller的模式演示。这可以正常工作,但在显示时,它不会显示SettingsViewController中的tableView。它只显示一个灰色背景和导航栏。为什么它没有在SettingsViewController中显示我的tableView

    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是通过故事板添加的