Added some explanation, and dismiss the keyboard when you press “Enter”.
Removed the instruction UITextView - just put it in the error output TextView and display it on Clear”.
Put check for good input in the getIntegerFromString selector to reduce duplicate code.  Took out the spurious sort.
 - Fix to remove warnings for 64-bit compilation.
 - Dismiss the keyboard when the text field loses focus.