Created
October 29, 2017 14:40
-
-
Save nathangitter/fb042b286f0133b574f357b5659b3f1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() | |
let button = UIButton() | |
button.addTarget(self, action: #selector(uiButtonAction), for: .touchUpInside) | |
view.addSubview(button) | |
} | |
@objc private func uiButtonAction() { | |
print("UIButton pressed!") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment