Reputation: 1291
I use RSSReader Version 2.0 with UITabBarController in my project. Tried to add a tableview update feature "pull to refresh" by EGOTableViewPullRefresh.
I added 4 files to the project:
My ViewController.h looks like this:
#import <UIKit/UIKit.h>
#import "RSSParser.h"
#import "PullToRefreshTableViewController.h"
@interface RSSListViewController : PullToRefreshTableViewController <RSSParserDelegate> {
RSSParser * _rssParser;
}
- (id)initWithRSSURL:(NSString *)rssURL;
- (void)startActivity:(id)sender;
- (void)stopActivity:(id)sender;
@end
and in ViewController.m I added this lines:
- (void)reloadTableViewDataSource{
[super performSelector:@selector(dataSourceDidFinishLoadingNewData) withObject:nil afterDelay:3.0];
}
- (void)dataSourceDidFinishLoadingNewData{
[refreshHeaderView setCurrentDate];
[super dataSourceDidFinishLoadingNewData];
[self.tableView reloadData];
}
The update process begins, but the information doesn't get updated.
Upvotes: 0
Views: 606
Reputation: 14766
What is the problem:
Upvotes: 1