ios - UISplitViewController 弹出菜单填满屏幕,如何更改大小?

标签 ios ipad uisplitviewcontroller uipopovercontroller

我不确定我做了什么,因为这曾经工作得很好,但突然纵向的弹出菜单填满了屏幕。以前它只有 xib (320px)那么大,但现在它们覆盖了整个屏幕。 (弹出窗口中包含的 TableView Controller 的 xib。)

我认为我没有任何代码可以控制它。您对我应该去哪里有什么建议吗?

最佳答案

也许这会对您有所帮助:来自 Apple 文档:

@property(nonatomic, readwrite) CGSize contentSizeForViewInPopover

This property contains the desired size for the view controller when it is displayed in a popover. By default, the width is set to 320 points and the height is set to 1100 points. You can change these values as needed.

关于ios - UISplitViewController 弹出菜单填满屏幕,如何更改大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7421459/

相关文章:

iphone - 是否有可能让 iOS Simulator 的表现更像一部真正的 iPhone?

objective-c - 显示向下滑动(就像在 iPad Split View中一样)

iphone - 苹果的 MultipleDetailViews 示例中调用了 numberOfRowsInSection 但未调用 cellForRowAtIndexPath

ios - 具有多个 TextField 的动态 UIPickerView

iOS 7 后台传输服务在 3 分钟后停止

ios - Xcode 项目构建失败,没有错误

iphone - iOS SDK : Container view with 3 UI View area how to?

ios - Split View Controller 只显示一个 childviewcontroller

ios - 带有多个 OR 语句的 Objective-C IF 语句

ios - 当应用程序处于非事件状态时覆盖图像