【问题标题】:iOS9 UIPopoverPresentationController UIModalPresentationPopover display at full widthiOS9 UIPopoverPresentationController UIModalPresentationPopover 全宽显示
【发布时间】:2016-07-02 00:51:26
【问题描述】:

我有一个UIViewController 实例,其中modalPresentationStyleUIModalPresentationPopover。我想移除弹出框左右两侧的排水沟,以便弹出框基本上是全宽的。

我可以调整哪些属性来移除左右装订线?

【问题讨论】:

    标签: ios uipopovercontroller popover


    【解决方案1】:

    弹出框的宽度由其视图控制器的preferredContentSize 控制。但是,如果您想完全控制呈现视图的大小,则应该使用呈现视图控制器和您自己的 UIPresentationController 子类。

    【讨论】:

      【解决方案2】:

      另一个要考虑的属性是UIPopoverPresentationControllerpopoverLayoutMargins

      【讨论】:

        猜你喜欢
        • 2015-02-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-06-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-05-30
        相关资源
        最近更新 更多