Button
unknown
swift
3 days ago
322 B
5
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