Need a robust solution to keyboard entry of an integer value in Settings bundle
问题 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? 回答1: I have always implemented this with a custom - (BOOL)textField:(UITextField *)textField