0
내가 다른 제목 내 세포를 갖고 싶어
명명와 각 셀을 가지고 있지만 그것은 내가 두 차원 배열을 사용하려고하지만 실제로 구현하는 방법을 몰랐다 모든 에 대해 같은 표시 유지하기 위해 어떻게UICollectionViewCell : 다른는
어떤 도움은 매우
class DequedCEll: UICollectionViewCell {
override init(frame: CGRect) {
super.init(frame: frame)
setupViews()
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
// this is the part where i stuck
let Mainlabel : UILabel = {
var label = UILabel()
label.text = "??"
label.font = UIFont.boldSystemFont(ofSize: 45)
return label
}()
func setupViews() {
backgroundColor = .yellow
addSubview(Mainlabel)
Mainlabel.anchorToTop(self.topAnchor, left: self.leftAnchor, bottom: self.bottomAnchor, right: self.rightAnchor)
}
}