I currently have a button and a text field, named offlineListing and productURLField respectively. I am trying to automatically input the text "N/A" into the productURLField once offlineListing has been selected by using the following syntax:
@IBOutlet weak var productURLField: UITextField!
@IBAction func offlineListing(_ sender: Any) {
let productURLField = "N/A"
}
However once the button is selected, nothing happens. Is there a reason as to why this isn't working properly?
1
0
968