views:

28

answers:

2

hey everyone,

I have a subview where there is an uitableview that gets data from an online server (title, subtitle and image). When I click the button that shows the subview it takes a little time to get there using WiFi connection, but under 3G network it takes longer, so that you really feel the gap between loading the view and having pressed the button

what I'd like to do, is to display an uiactivityindicatorview when you press the button and after loading the view, and when it has loaded stop the activity indicator

how can I check that the uitableview has finished loading ? do you have other suggestions ?

Thanks in advance

A: 

Use asynchronious requests or threading (take a look at NSOperation)

Sander Backus
could you please give me more informations or a small sample ? thanks
David Pollak
A: 

Look into doing network operations asynchronously, rather than blocking the main UI's thread. ASIHTTPRequest is a really good library for this: http://allseeing-i.com/ASIHTTPRequest/

jasonmadigan