简体   繁体   中英

UITableView And UICollectionView inside scrollView not visible

I have a tableView and a collectionView inside scrollView. Both of them have constraints for left, right, top and bottom. But both views are now visible when inside scrollView

Why may it be ?

我认为scrollViews需要知道其子视图的宽度和高度

Follow these steps:

  1. Disable scroll for table view and collection view.
  2. Resize the height of table view and collection view as per its content (If Dynamic height)

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