I am trying to refresh my TableView while I am parsing RSS. Once I update the xml and then I press on refresh button it wont make anything but when I close and open the app it runs the new updated xml. Where could be my problem?
-(void)refreshButton{
[self.MyTableView reloadData];
NSLog(@"RSS refreshed");
}
Thanks from now.
The issue is you are parsing the xml from the
viewDidLoad. So if the xml is changed then you need to parse it again.So change the refresh data method like:
newXMLDatais an instance ofNSDataand it holds theXMLfile in the form of bytes.