简体   繁体   English

自定尺寸表视图内的自定尺寸集合视图

[英]self sizing collection view inside self sizing table view

i need help here with my problem, i basically tried every option what i have found on the internet but nothing works.我需要帮助解决我的问题,我基本上尝试了我在互联网上找到的所有选项,但没有任何效果。

what im trying to achieve is horizontal full width self sizing(height)collection view calculated by collection view cell content inside full width self sizing(height) table view cell calculated by collection view height.我试图实现的是水平全宽自我调整(高度)集合视图,由集合视图单元格内容计算在全宽自我调整(高度)表格视图单元格中,由集合视图高度计算。 Thanks for any help :)谢谢你的帮助 :)

table view
  table view cell 1
     string 1 - fixed 40px
     collection view - horizontal
       collection view cell 1
       collection view cell 2
       collection view cell 3
     string 2 - fixed 40px
  table view cell 2
     string 1 - fixed 40px
     collection view - horizontal
       collection view cell 1
     string 2 - fixed 40px

You can use multiple sections with UITableView's header and footer along with tableView's cell.您可以将多个部分与 UITableView 的页眉和页脚以及 tableView 的单元格一起使用。 Like below:如下所示:

table view
   section 1
      table header - fixed 40px
      table cell with collectionView inside for horizontal
      table footer - fixed 40px

   next section...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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