简体   繁体   中英

Calculate and add no of views dynamically to tableView row swift 3?

i need to design below screen.

i have taken dynamic tableview. Inside the tableview i have taken two views

---> 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)

I am displaying the no of rows as per no of months. but how to show dynamically views inside the table view row??

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM