Is it possible to programmatically change the keyboard type of a uitextfield so that something like this would be possible:
if(user is prompted for numeric i
There is a property for this called keyboardType.
What you'll want to do is replace where you have strings @"Number Pad and @"Default with UIKeyboardTypeNumberPad and UIKeyboardTypeDefault.
Your new code should look something like this:
if(user is prompted for numeric input only)
[textField setKeyboardType:UIKeyboardTypeNumberPad];
else if(user is prompted for alphanumeric input)
[textField setKeyboardType:UIKeyboardTypeDefault];
Good Luck!