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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.