[英]UITableView cell with collection view
I have created a .xib file for TableView cell, and I want to add a collection view into that cell. 我已经为TableView单元创建了一个.xib文件,我想向该单元中添加一个集合视图。 picture The gray rectangle shown in the picture is a collection view, my question is why the collection view doesn't show a prototype cell.
图片图片中显示的灰色矩形是一个集合视图,我的问题是为什么该集合视图没有显示原型单元。 What did I do wrong?
我做错了什么? Or this is what it should be, then how can I add a prototype cell?
或这就是应该的样子,那么如何添加原型单元? By making another .xib file for the UICollectionVew Cell?
通过为UICollectionVew单元制作另一个.xib文件?
my question is why the collection view doesn't show a prototype cell
我的问题是为什么集合视图没有显示原型单元
Because it's a .xib . 因为它是.xib 。 Prototype cells are a storyboard feature.
原型单元是情节提要的功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.