开发者

Reload uiview in iphone?

I am parsing xml and get data 开发者_如何学Cand show this data on view, now i have to add reload button, which reload my view and call again xml parsing function, now problem is that how can i remove all contents on view and again show???


After loading and parsing the new data, call setNeedsDisplay:.

Implement drawRect: in the view such that it reflects the new data.


If you are using mutables array for storing you xml data just remove all objects from array. Set nil to your labels's text and whatever you have on your view reload/download xml again and display on view.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜