Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Numeric text fields in iPhone settings.bundle

I recently checked out this Apple doc: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/UserDefaults/Preferences/Preferences.html

And I can now add settings.bundle into my app and can use it. I can edit Root.plist and I know how to use text fields in this but what I want the user to enter is numeric values.

The default text field allows user to enter any text but I want to take only numeric values from users.

How to do that?

like image 902
necixy Avatar asked Sep 11 '26 18:09

necixy


1 Answers

Simply set keyboard type to number pad. Refer the image below enter image description here

like image 158
Sudhin Davis Avatar answered Sep 14 '26 05:09

Sudhin Davis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!