Hi All,
I want to compare all the strings entered in a textview of iphone. Once the user finishes with typing in textview I want to compare strings entered by the user.
How do I do it?
Please help
Hi All,
I want to compare all the strings entered in a textview of iphone. Once the user finishes with typing in textview I want to compare strings entered by the user.
How do I do it?
Please help
I am not sure what you define "finishes with typing", here is my guess:
You have to set up your class become UITextViewDelegate and implements some methods:
- (void)textViewDidChange:(UITextView *)textView
- (void)textViewDidEndEditing:(UITextView *)textView
I also don't know what you define by comparing all the NSString. One way to do is put them into NSSet
and NSSet
itself will remove duplicates of NSString
for you