I have an integer value that spans a range so large it is impractical to use a slider, as it lacks the sensitivity to pick out an exact value in that range.
I used a PSTextFieldSpecifier instead, and set the keyboard to Numbers. However, in Settings.app, the copy and paste function allows text to be inserted into what should be a numeric field.
Does anyone have a solution to the problem?
I have always implemented this with a custom
routine. You monitor the characters as they come in and only accept the numerics.
I used a UITextField, and implemented the UITextFieldDelegate methods outlined below:
And finally the routine that gets automatically called when the textfield has ended editing
In my example, I did perform value limit checking, but this code could be deleted.