我有与这个的答案相同的代码。我正在尝试实现一个自定义视图单元格,它正在这样做,直到它转换单元格并尝试分配自定义视图单元格的属性为止(因为它仍然将单元格视为UICollectionViewCell而不是CustomViewCell)。-[UICollectionViewCell imageView]: unrecognized selector sent to instance 0x1658c540
我在UIView而不是UIViewController中调用集合视图,因此viewDidLoad没有
component.get("v.recordId")在doInit中产生undefined。c.doInit}"/> <p>{!v.recordId}</p> <!--empty--> <!--A bunch of other irrelevant stuff-->NewResidentController.jsdoI