iPhone 的 UIPopoverController

发布于 2024-11-25 18:58:50 字数 269 浏览 2 评论 0原文

有谁知道我将如何创建一个 UIPopoverController 就像 Tweetbot 表单 Tapbots 中的那样?几个月来我一直试图解决这个问题,并放弃了认为这是不可能的想法。当 Tweetbot 收到此更新时,它意识到这是可能的,但我似乎仍然无法弄清楚。有谁知道我可以下载具有相同 UIPopover 的课程?

谢谢

编辑:http://d.pr/LPI9

Does anyone know of how I would go about creating a UIPopoverController like the one found in Tweetbot form Tapbots? For months I have been trying to figure this out and gave up thinking it wasn't possible. When Tweetbot received an update with this, it made realize it is possible but I still can't seem to figure it out. Does anyone know of classes I could download that has an identical UIPopover?

Thanks

Edit: http://d.pr/LPI9

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

最近可好 2024-12-02 18:58:50

Popover 控制器专门用于 iPad 设备。尝试在其他设备上创建一个会导致异常。

如果您需要自定义 popOverController,请检查此链接
适用于 iPhone 的自定义 uipopovercontroller

Popover controllers are for use exclusively on iPad devices. Attempting to create one on other devices results in an exception.

If you need custom popOverController check this link
Custom uipopovercontroller for iPhone

没有心的人 2024-12-02 18:58:50
  TestTableViewController *vc = [[TestTableViewController alloc]initWithStyle:UITableViewStylePlain];

    [self addChildViewController:vc];

    [self.view addSubview:vc.view];
    [self.view bringSubviewToFront:vc.view];
    [vc.view setFrame:CGRectMake(20, 20, 100, 200)];

您可以创建一个子视图作为 uipopviewcontroller ,注意不要在滚动视图上添加子视图,否则滚动效果消失。

  TestTableViewController *vc = [[TestTableViewController alloc]initWithStyle:UITableViewStylePlain];

    [self addChildViewController:vc];

    [self.view addSubview:vc.view];
    [self.view bringSubviewToFront:vc.view];
    [vc.view setFrame:CGRectMake(20, 20, 100, 200)];

You can create a child view as uipopviewcontroller , beware not add childview on a scrollview , otherwise the scroll effect vanishes .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文