I want to check that only alphabetic,numeric and some special character is allowed in my textfield.Only %&@-_. this special character is allowed in textfield , other special character is not allowed.
I want to check that only alphabetic,numeric and some special character is allowed in
Share
Implement
in the delegate, and check that all characters in
stringare of the kind that you allow.One very simple way of checking characters for membership in a set is by using
NSCharacterSetclass.