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.
精彩评论