gpt4 book ai didi

ios - 计算 View 数量并将其动态添加到 tableView 行 swift 3?

转载 作者:行者123 更新时间:2023-11-30 12:19:10 25 4
gpt4 key购买 nike

我需要在屏幕下方进行设计。

我已经采取了动态桌面 View 。在表格 View 中我采取了两个 View

---> one view contains a label - used to display month name
---> second View contains two labels which is in the above screen
i got problem with the second view. i have taken two labels in second view

second View-->
--> belowLabel: displaying the date of the Jan (ex: 5 )
--> aboveLabel: the no of visits on 5th jan
if January contains 6 days visits, then i need to display that no of secondviews(dynamically)

我按照月份显示行数。但如何在 TableView 行内动态显示 View ?

最佳答案

您可以使用 UICollection View 来通过个性化的 uicollectionViewCell 来实现此目的

关于ios - 计算 View 数量并将其动态添加到 tableView 行 swift 3?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45014253/

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