According to the UITextInputTraits Protocol Reference, the UIKeyboardTypeDecimalPad is "Available in iOS 4.1 and later."
I am currently using the System Versioning Preprocessor Macros found in How to check iOS version? to check if my app is running in iOS 4.1 and later, but I wonder...
Is there a better way to test for this keypad's availability? I can't test for availability of the selector "setKeyboardType", since that will always return YES. I need to test if one of the UIKeyboardType enums is available for use.
Any ideas?