R rethish macrumors member Original poster Oct 16, 2008 41 0 Nov 12, 2008 #1 in my application one of the textfield is assigned to accept only numbers.But can be it done . Please help to validate a textfield only with numbers thank you
in my application one of the textfield is assigned to accept only numbers.But can be it done . Please help to validate a textfield only with numbers thank you
K kainjow Moderator emeritus Jun 15, 2000 7,958 7 Nov 12, 2008 #2 You can use NSPredicate. https://forums.macrumors.com/threads/480096/
R rethish macrumors member Original poster Oct 16, 2008 41 0 Nov 13, 2008 #3 thank you thank you i tried that. it works for email validation . when trying to validate a number with some change ,it is not working. please show another way
thank you thank you i tried that. it works for email validation . when trying to validate a number with some change ,it is not working. please show another way
K kainjow Moderator emeritus Jun 15, 2000 7,958 7 Nov 13, 2008 #4 Yes you would need to modify the regular expressions. There are a ton of tutorials on this, just google it.
Yes you would need to modify the regular expressions. There are a ton of tutorials on this, just google it.