A
Size: a a a
A
В
A
R
R
В
В
R
editInfoButton.setTitleColor(.black, for: .normal)
editInfoButton.setTitleColor(.white, for: .highlighted)
R
В
editInfoButton.setTitleColor(.black, for: .normal)
editInfoButton.setTitleColor(.white, for: .highlighted)
R
R
editInfoFunc() {
let frameButton: CGRect = CGRect(x: 80, y: 420, width: UIScreen.main.bounds.width - 160, height: 50)
self.editInfoButton.frame = frameButton
editInfoButton.setTitle("Редактировать", for: .normal)
editInfoButton.backgroundColor = .lightGray
// editInfoButton.titleLabel?.font = titleLabel.font.withSize(18)
editInfoButton.setTitleColor(.black, for: .normal)
editInfoButton.setTitleColor(.white, for: .highlighted)
editInfoButton.layer.cornerRadius = 20
editInfoButton.clipsToBounds =
true
self.view.addSubview(editInfoButton)
}
@IBAction@IBAction
func editInfoButton(sender: UIButton) {
print("Заходит")
let editInfoController = UIStoryboard(name: "Tasks", bundle:
nil).instantiateViewController(withIdentifier: "editInfo")
present(editInfoController, animated:
true)
}
В
R
В
R
AY
self.editInfoButton.addTarget(self, action: #selector(editInfoButton), for: .touchUpInside)
В
self.editInfoButton.addTarget(self, action: #selector(editInfoButton), for: .touchUpInside)
AY
func editInfoButton
... bla bla