我的代码总是与'standerd'UITableview一起工作,但现在我在视图控制器中植入了Tableview。我的代码不工作(拉刷新)有谁知道为什么?拉动刷新
在一个普通的UITableview中它可以工作,但嗯,也许我错过了一些stuf,因为它是ViewController中的tableview。
我正在使用; https://github.com/enormego/EGOTableViewPullRefresh
- (void)reloadTableViewDataSource{
// should be calling your tableviews data source model to reload
// put here just for demo
_reloading = YES;
}
- (void)doneLoadingTableViewData{
// model should call this when its done loading
_reloading = NO;
[_refreshHeaderView egoRefreshScrollViewDataSourceDidFinishedLoading:self.tableView];
}
我使用的NSLog和它调用这两个功能的,但它没有显示蓝色的“拉刷新”吧,它也不会加载后滚动起来。
你居然将它添加到的tableView? – 2012-04-16 17:03:09
@ Paul.s它是一个viewcontroller中的可用视图! – Jones 2012-04-16 17:09:07
我的意思是你真的把pullToRefreshView添加到tableView – 2012-04-16 17:11:13