Quote:
Originally Posted by keyneosoft
The strings are composed an address (including the name of the city) : for instance 24 RUE DE LA LIBERTE LILLE and so on.
Every string is in uppercase, to avoid the accented characters case.
On the app, I want to find the objects that correspond to a search I'd type in the searchBar.
|
Hang on, you're making a search bar? Are you looking for exact comparisons or substrings? The code you've got should match '24 rue de la liberte lille' for your example, but it won't match 'rue' or 'rue de la liberte'.
Have a look at
rangeOfString: instead, it will search for substring matches anywhere in a string.
Even so, this is a
very inefficient way of searching, unless you have a small search space you may find it gets impractically slow.