Код: Выделить всё
@IBAction func click(_ sender: UIButton) {
print(sender.titleLabel?.text)
print(sender.currentTitle)
}
Подробнее здесь: https://stackoverflow.com/questions/733 ... d-in-swift
Код: Выделить всё
@IBAction func click(_ sender: UIButton) {
print(sender.titleLabel?.text)
print(sender.currentTitle)
}