0

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)?

Mukesh Ram
  • 6,248
  • 4
  • 19
  • 37
Vijay
  • 481
  • 3
  • 5
  • 13

0 Answers0