当我将它用作Interface Builder中的segue时,我想更改Popover的大小。

我已经将ViewController的大小设置为一个明确的值,但是弹出窗口仍然具有standard size
我会发现的:

Popover size with UINavigationController in Storyboard

但这对我不起作用。情节提要编辑器无法做到这一点吗?否则,我将需要在BarButtonItem单击上手动调用它。

最佳答案

如果您的应用程序在iOS版本 contentSizeForViewInPopover :

// Inside your view controller
- (CGSize)contentSizeForViewInPopover
{
    return CGSizeMake(450, 250);
}

07-28 06:27