Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Swift
swift compare string to button title
Keon
Programming language:
Swift
2021-03-19 07:02:43
0
Q:
swift compare string to button title
Adrockski
Code:
Swift
2021-06-17 10:50:04
if myButton.currentTitle == "myString" { // Do something }
1
Tags
string
button
compare
Related
how to add an underline to a textField swift
change ui button swift
how to change the font of buttons programmatically swift
change textfield placeholder color swiftui
swift change button text
swift change label text
swift uialertcontroller textfield
how to style textfield swiftui
swift move textfield when keyboard appears
how to add button dynamically in swift 4
uilabel center text programmatically swift
add textfield in swiftui
swift uicollectionview cell size
How to set back button text in Swift
set color for uibutton programmatically swift
textchange in textview swift
swift uitextfield placeholder color
add toggle without text swiftui
center text swiftui
New to Communities?
Join the community