gpt4 book ai didi

iOS:UIKit - UIPopoverVIew 中的图像/按钮/页面

转载 作者:行者123 更新时间:2023-11-29 13:15:23 26 4
gpt4 key购买 nike

我有一些非常简单的问题,但很难找到它们的答案 ;)

图片来自 Apple 的 Numbers 应用:

图 1)

他们如何将这 4 个拆分放在 UIPopover 的顶部?他们如何将 2 个拆分按钮(“2D/3D”)放入 UIPopover 中?怎么可能有几 (6) 张图像作为可点击的项目?

最后一个问题:如何将所有这些与表格 View 混合 - “图表选项”似乎是一个表格 View 单元格。

图 2)

与第一个非常相似,有不同的图像可供选择,但这次它有多个页面,这正是我所需要的。复制这个的提示会很棒 :)

我只需要知道要查找什么 - 如何准确复制此布局。

enter image description here

enter image description here

最佳答案

在您的示例中,Apple 可能在 UIPopoverController 中使用了 UIViewController。然后他们可以执行您通常在 UIViewController 中执行的任何操作 - 例如添加您询问的 UISegmentedControl

关于如何将“开关”放入弹出窗口顶部的问题,Apple 可能将 View Controller 封装在 UINavigationController 中。然后,他们将导航栏的 titleView 属性设置为 UISegmentedControl

图片中的图像网格可能是一个 UICollectionView 与一个 UIScrollView 配对,并打开了 paging

Disclaimer:

I don't have any connection with the team at Apple that built Numbers, and therefore have only the app itself to infer what they did from. Unless someone from Apple steps forth and tells (which they won't), we don't know for sure what they did.

关于iOS:UIKit - UIPopoverVIew 中的图像/按钮/页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15960629/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com