Button
unknown
swift
9 months ago
322 B
14
Indexable
class ViewController: UIViewController {
let button = UIButton()
override func viewDidLoad() {
super.viewDidLoad()
button.setTitle("Touch me", for: .normal)
button.addTarget(self, action: #selector(buttonTapped), for: .touchUpInside)
}
@objc private func buttonTapped() {
}
}
Editor is loading...
Leave a Comment