Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-09-2009, 11:35 AM   #10 (permalink)
Mr Jack
Maker of Games
 
Mr Jack's Avatar
 
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Mr Jack is on a distinguished road
Default

Quote:
Originally Posted by keyneosoft View Post
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.
__________________


Visit Mr Jack Games for my blog and more about my games
Mr Jack is offline   Reply With Quote
 

» Advertisements
» Online Users: 817
24 members and 793 guests
ADY, Agenor, baja_yu, cgokey, Creativ, dansparrow, Duncan C, fkmtc, ilmman, imac74, iram901, kosicki123, latoncefrank, maggyparker, muchless, nestochi, petrsigut, Promo Dispenser, raidu, SillyHoney, stanny, ubaid, xltke, _MAK88_
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,387
Threads: 94,003
Posts: 402,461
Top Poster: BrianSlick (7,978)
Welcome to our newest member, latoncefrank
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:42 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.