Reload UITableView?

"YOU AND THE ART OF ONLINE DATING" is the only product on the market that will take you step-by-step through the process of online dating, provide you with the resources to help ensure success. Get it now!

You can call self parseXMLFileAtURL:path directly to refresh your feed as this method empties the array. Don't call viewWillAppear directly. Just call parseXMLFileAtURL in viewWillAppear and refreshFeeds.

You can call self parseXMLFileAtURL:path; directly to refresh your feed as this method empties the array. Don't call viewWillAppear directly. Just call parseXMLFileAtURL in viewWillAppear and refreshFeeds.

Calling viewWillAppear explicity is incorrect. You should rather have the reload logic in a separate function, call that function in viewWillAppear and on button press. Calling viewWillAppear in button press is something I don't think is correct.

Pratikshabhisikar thanx for replying! Even if I call the self parseXMLFileAtURL:path; instead of viewWillAppear the result is the same... – CrisDeBlonde May 16 at 14:07.

As I understand your code, stories is the array that is providing the data for the newsTable. You are nil-ing it and updating the array. What if the newsTable requests data from its data source in between.It will find that stories to be empty and hence will have no data to show.

We can assume there will a small but significant amount of delay in downloading and parsing your rss data. During this time, stories will remain empty. You should consider downloading the rss data and parsing it into a different array.

Replace the stories just before you are ready to refresh newsTable.

I have a class implementing the UITableViewDelegate and the NSXMLParserDelegate. My app is tab based. When I select the proper tab, in the viewWillAppear method of my class I start my xml parser to parse the rss feed at a specific url, then I populate my UITableView with the contents of the feeds.

Now I want to have a button to "refresh" the view (that is parse the rss feed again and display the new results). My problem is that when I press the "refresh" button the view turns to blank, as if there are no feeds to display.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions