Answers for "uibutton click programmatically swift"

1

swift uibutton programmatically set ontap function

myButton.addTarget(self, action: #selector(myButtonTapped), for: .touchUpInside)
@objc func myButtonTapped() {
    print("My button was tapped!")
}
Posted by: Guest on June-29-2021
0

button click programmatically swift

button.sendActions(for: .touchUpInside)
Posted by: Guest on April-08-2020

Code answers related to "uibutton click programmatically swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language