UIModalPresentationFormSheet没有显示tableView

时间:2014-07-18 17:34:17

标签: ios objective-c uitableview

我正在尝试实现settingsViewController的模态演示。这很好用,但是当它出现时,它没有显示在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];

0 个答案:

没有答案