问题:
我无法使用我创建的moveTaskTextfieldBottomAnchor
目标C方法。我不确定我在这里做错了什么。
class ConstructQuestHeader: UICollectionViewCell {
lazy var taskTextField: UITextField = {
let tf = UITextField()
tf.placeholder = "What task needs to be done?"
tf.font = UIFont.systemFont(ofSize: 14)
tf.addTarget(self, action: #selector(moveTaskTextfieldBottomAnchor), for: .touchDown)
return tf
}()
@objc func moveTaskTextfieldBottomAnchor() {
print("moving taskTextfield")
}
}