gpt4 book ai didi

swift - 分段 Controller 还是 CollectionView?

转载 作者:行者123 更新时间:2023-11-30 12:34:15 29 4
gpt4 key购买 nike

ViewController 有三个按钮:“ friend ”“日历”“信息”。每个按钮将代表此 viewController 下半部分的不同信息。

我的问题是选择什么来表示这些信息 - 分段 Controller 还是 UICollectionView? See attached image

最佳答案

为什么需要使用 UICOllectionView 来实现这一目标?如果你使用 SegmentControl 那就没问题了。如果你设置 UICollectionView 你该怎么做?如果是SegmentControll,您可以轻松选择您想要的。您也可以将其设置在 tableView 上方。

关于swift - 分段 Controller 还是 CollectionView?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43074948/

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