Answers for "how to get text from button swift"

2

swift change button text

button.setTitle("Button Title",for: .normal)
Posted by: Guest on March-20-2020
1

swift compare string to button title

if myButton.currentTitle == "myString" {
  // Do something
}
Posted by: Guest on September-01-2020
1

How to set back button text in Swift

let backButton = UIBarButtonItem()

backButton.title = "name"

self.navigationController?.navigationBar.topItem?.backBarButtonItem = backButton
Posted by: Guest on December-18-2019

Code answers related to "how to get text from button swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language