AK
Size: a a a
AK
РЛ
CATransaction.begin()
CATransaction.setDisableActions(true)
gradientLayer.frame = layer.bounds
CATransaction.commit()
S
NK
Z
AK
AK
Z
P
P
SD
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: questionCellReuseIdentifier, for: indexPath) as! WrongAnswersCollectionViewCell
Force Cast Violation: Force casts should be avoided. (force_cast)
wrongAnswersCollectionView.register(WrongAnswersCollectionViewCell.self, forCellWithReuseIdentifier: questionCellReuseIdentifier)
K
Э
K
SD
SD
import UIKit
class WrongAnswersCollectionViewCell: UICollectionViewCell {
@IBOutlet var questionButton: UIButton!
override init(frame: CGRect) {
super.init(frame: .zero)
print(questionButton)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
Получаю nilК
К
.
AG