I have a UITextField with an outlet called newscore. I am trying to run a block of code when the UITextfield (particularly newscore) is tapped and the keyboard is brought up, or when the user is begin editing the UITextfield.
I can't seem to figure out the proper function to do this.. Is it similar to the code below (the code doesn't work) or is the function called something else?
func textFieldShouldBeginEditing(textField: UITextField) -> Bool {
//Run block of code
}