Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i get the original string in textfield? #9

Closed
carlosandresSanchez opened this issue Jul 22, 2015 · 6 comments
Closed

how can i get the original string in textfield? #9

carlosandresSanchez opened this issue Jul 22, 2015 · 6 comments

Comments

@carlosandresSanchez
Copy link

No description provided.

@fjcaetano
Copy link
Owner

@carlosandresSanchez, what do you mean by "original string"? The cleaned string?

You can access the current value of the textfield normally as textfield.text or you may need something like [textfield.mask validCharactersForString:textfield.text].

@fjcaetano
Copy link
Owner

Let me know if this works for you

@carlosandresSanchez
Copy link
Author

what I need is the cleaned string. If with my masked string i Have 55 5555 5555, what I want is to get the string : "5555555555".

@fjcaetano
Copy link
Owner

Did you try using the validCharactersForString: method I described?

@carlosandresSanchez
Copy link
Author

Yes, excuse me. it works with the validCharactersForString: method.

Thank you so much!!

@fjcaetano
Copy link
Owner

Excellent!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants