Where should I put some code for loading application data?

Posted by cgp on Stack Overflow See other posts from Stack Overflow or by cgp
Published on 2010-04-08T16:45:21Z Indexed on 2010/04/08 17:03 UTC
Read the original article Hit count: 255

Filed under:
|
|

I have a tab-bar and navigation controller application (like Youtube app or Contacts app).

Where is the correct place to have the code for loading some data from the web? These data are necessary for all the tabs of the Tab Controller and the app can't display anything before all data are downloaded and parsed from the app (except a loading indicator view of course).

Up to now I put it in the AppDelegate but it somehow doesn't feel right..

What's the correct way to do it?

Thanks!

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa-touch