【问题标题】:Overlay Panel iPad覆盖面板 iPad
【发布时间】:2012-10-04 01:24:17
【问题描述】:

我正在尝试创建一个面板,它可以在我的视图上滑动以显示更多与 ipad 上的应用商店非常相似的内容:

是否有这样的类,还是我必须从头开始创建它?

提前致谢, 本

【问题讨论】:

    标签: ios view panel


    【解决方案1】:

    我发现了如何做到这一点,使用:

    UIViewController *sampleView = [[UIViewController alloc]init];
    [sampleView setModalPresentationStyle:UIModalPresentationFormSheet];
    [self presentViewController:sampleView animated:YES completion:NULL];
    

    如果你想要像应用商店那样的方角,你可以使用:

    self.view.layer.cornerRadius = 0;
    

    在你使用的 UIViewController 的 viewWillAppear:(BOOL)animated 方法中。您需要导入 QuartzCore/QuartzCore.h。

    【讨论】:

      【解决方案2】:

      Uicontainerview 是我会使用的。您可以在“U”下找到此控件。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-05-04
        • 1970-01-01
        • 2011-02-23
        • 2011-04-11
        • 2018-08-02
        • 2020-06-26
        • 1970-01-01
        相关资源
        最近更新 更多