1

我将这两个网点添加到我的AppController.j

@outlet CPWindow theWindow;
@outlet CPWindow thePanel;

theWindow填满整个浏览器窗口 ( setFullPlatformWindow:YES)。

现在我正在使用一个CPToolbarItem(在CPToolbar我添加到的内部theWindow)在单击时执行此方法:

- (IBAction)showPanel:(id)aSender {

    // ...
    [CPApp runModalForWindow:thePanel];
}

我在 Interface Builder 中创建了所有这些 UI 元素。

当我关闭时thePaneltheWindow似乎卡住了 - 无法单击按钮或theWindow以任何其他方式与元素交互。

这里出了什么问题?

4

1 回答 1

2

您可能没有成功关闭面板,因此它的模态状态仍然处于活动状态。在负责关闭面板的代码中试试这个:

[CPApp abortModal];
[thePanel close];
于 2013-08-04T09:45:41.953 回答