ios Check phone number of american valid or not -
i want check string or not match american phone number? (xxx)xxx-xxxx or xxx-xxx-xxxx
please me,thank you.
i think best solution using rmphoneformat.
as description says :
rmphoneformat *fmt = [[rmphoneformat alloc] init]; // call number of times nsstring *numberstring = // phone number validate bool valid = [fmt isphonenumbervalid:fmt];
good luck !
Comments
Post a Comment