Objective c 拉动刷新
我的代码总是使用“standerd”UITableview,但现在我在viewcontroller中植入了Tableview。我的代码不工作(拉刷新)有人知道原因吗 在一个普通的UITableview中,它可以工作,但是嗯,也许我缺少了一些stuf,因为它是ViewController中的一个tableview 我正在使用Objective c 拉动刷新,objective-c,ios5,pull-to-refresh,Objective C,Ios5,Pull To Refresh,我的代码总是使用“standerd”UITableview,但现在我在viewcontroller中植入了Tableview。我的代码不工作(拉刷新)有人知道原因吗 在一个普通的UITableview中,它可以工作,但是嗯,也许我缺少了一些stuf,因为它是ViewController中的一个tableview 我正在使用 我使用了NSlog,它调用了这两个函数,但它没有显示蓝色的“pull to refresh”栏,加载后也不会向上滚动。为什么不移动到一个已经编码、稳定且众所周知的外部代码?
我使用了NSlog,它调用了这两个函数,但它没有显示蓝色的“pull to refresh”栏,加载后也不会向上滚动。为什么不移动到一个已经编码、稳定且众所周知的外部代码? 看一看
这可能会解决您的问题。请参阅下面的链接
我正在使用它,但它不起作用,请检查我的第一条消息。你真的要将它添加到tableView吗?@Paul.s它是viewcontroller中的uitableview!我是说,你真的把pullToRefreshView添加到了TableView中了吗?我下载并植入了它@Paul.sShow您在其中alloc/init pullToRefreshView的代码
- (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];
}