我有一个包含另一个集合视图的UIView。 collectionview布局超出了超级视图的范围。我想要做的是剪辑到界限的相反,因为我的超级视图部分透明,我不想在视图下方看到集合视图:
++++++++++++++++++++++++++++
+ +
+ super View +
+ +
+ +
-----------------------------------
- + collection view + -
- + + -
-----------------------------------
+ +
+ +
++++++++++++++++++++++++++++
应该是
++++++++++++++++++++++++++++
+ +
+ super View +
+ +
+ +
---+ +---
- + + -
- + + -
---+ +---
+ +
+ +
++++++++++++++++++++++++++++
任何想法?