title: Objective-c How to do validation on textField
body: <p>I would like to prevent the user from not entering any data as well as entering only spaces. So basically there must at least be one character without a space. Then I would also like to remove any spaces at the beginning of the word so the first letter is a character that is not a space.</p>
  
  <p><strong>edit</strong></p>
  
  <p>the user must enter something and if the user enters a few spaces before it then I want to trim those spaces. I also want to prevent the user from just entering spaces.</p>
  
  <p><strong>Example</strong></p>
  
  <p>if the user enter's a name and surname like " James Dean" I would like to take the first space away but not the second space between James and Dean.</p>