I have a textfield
, where I ask a user for a single word.
What is the recommended way to not allow users to enter multiple words? My current solution is to implement textField(shouldChangeCharactersInRange)
and not allow any spaces.
Is there a way that requires no code (i.e. change properties of the textfield
in the storyboard)?