草庐IT

AppFeedCell

全部标签

ios - 向 collectionview 注册 nib

我有FeedCell.swift和FeedCell.xib,在feedcellxib中我将单元格自定义类设置为“FeedCell”ViewControllerviewDidLoad中的代码collectionView.register(UINib(nibName:"FeedCell",bundle:.main),forCellWithReuseIdentifier:"feedCell")问题:我想继承FeedCell并将该类与collectionView一起使用喜欢:classFeedCell:UICollectionViewCell{@IBOutletweakvarshowImage