开发者

Charging a subview during the time my main subview is not loaded

I a loading a tableview wich takes data from the web (with a XML parser). But using the 3G it takes some times until I get all off my datas. So I would like to load a subvi开发者_JS百科ew (with only a label "loading... " on it) during the time my data is not loaded. How can I do this?

Thanks


You should download the data asynchronously. (For example, if you use NSURLConnection, use the +connectionWithRequest:delegate: and handle the data in a delegate object.)

Before the data is loaded, put the subview in.

In the data-receiver delegate, take the subview out in the "done" method (e.g. -connectionDidFinishLoading:.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜