Hi maniac,
I don't understand the touchesBegan method
1. the comment //Dismisses Keyboard when view outside the text field is touched
>>> ? how does the cod e or precisely the coder know that the touch was outside of the text field and not on it.
2 Why does the method set the textfield.text to self.string i.e. why reset the text ?
Thanks Mark
iwantone99 2 years ago
Hi maniac,
I don't understand the touchesBegan method
1. the comment //Dismisses Keyboard when view outside the text field is touched
>>> ? how does the cod e or precisely the coder know that the touch was outside of the text field and not on it.
2 Why does the method set the textfield.text to self.string i.e. why reset the text ?
Thanks Mark
iwantone99 2 years ago