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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-26-2011, 03:06 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 83
djp_phillips is on a distinguished road
Default Remote data search with UISearchBar

I need to get remote data when I search a TableView using the SearchBar.

What are the best practices for this?

My concern is that if I send a new HTTP request each time the user changes the search bar's value, I could end up blocking the application because too many HTTP requests are being made, but also if I have many requests, it's also possible for an older request to lag and arrive after a newer request, so the results won't be very stable.

How would you perform remote data requests from a search bar effectively ?

Thanks
djp_phillips is offline   Reply With Quote
Old 04-26-2011, 03:41 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

there is no options, if your "remote data" can't be downloaded (and cached) on a BIG file (sqlite or in parsed xml in ram), you need to do many http request, maybe with a lag of 0.5/1.0 second (so if the user tap many characters will start only when finished to write).
__________________
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Tags
http, nsurl, searchbar

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 347
11 members and 336 guests
dansparrow, iOS.Lover, lorrettaui53, Nobbsy, oztemel, pbart, PlutoPrime, samdanielblr, sledzeppelin, thephotographer, Trickphotostudios
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,897
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:51 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0