title: How to restrict the maximum allowed input value in a text field to be 10?
body: <p>I have a UITextField. I'd like to restrict the maximum allowed input value in the field to be 10.</p>
  
  <p>That is, when the user is inputting the number inside, once the input value is larger than 10, the value in the input field won't be updated anymore unless the user is inputting a value less than or equal to 10.</p>