0

我正在使用通用应用程序并正在使用情节提要。该应用程序的基本思想是导航控制器内部有一个文本视图。用户编辑文本视图后,他们可以选择保存数据。此文本视图数据保存在数组中。要查看已保存文本视图的列表,导航栏中有一个按钮,按下该按钮会转到表格视图。我遇到的问题是在 iPad 版本上,此表格视图显示为弹出框并且不继承导航栏,该导航栏显示允许重新排序单元格的编辑按钮。我找不到解决方案来在弹出窗口中显示此表视图的重新排序控件。这适用于 iPhone 版本,因为 table view segue 是一个推送。

在此处输入图像描述

这是弹出框的segue代码:

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    if ([segue.identifier isEqualToString:@"Show Digital Tape Archive"]) {
        if ([segue isKindOfClass:[UIStoryboardPopoverSegue class]]) {
            UIStoryboardPopoverSegue *popoverSegue = (UIStoryboardPopoverSegue *)segue;
            [self.popoverController dismissPopoverAnimated:YES];
            self.popoverController = popoverSegue.popoverController;
        } .....

任何帮助或建议表示赞赏。

4

1 回答 1

0

After researching and a lot of trial and error, the solution I came up with is creating this popover as a UIViewController instead of a UITableViewController. I then added a toolbar and a tableView. When I originally created this viewController, it was a UITableViewController and I wasn't able to add a toolbar.

There appears to be a way to add a toolbar on a UITableViewController but wasn't able to do it.

于 2013-02-05T04:41:03.337 回答