Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 拉动刷新_Objective C_Ios5_Pull To Refresh - Fatal编程技术网

Objective c 拉动刷新

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”栏,加载后也不会向上滚动。为什么不移动到一个已经编码、稳定且众所周知的外部代码?

我的代码总是使用“standerd”UITableview,但现在我在viewcontroller中植入了Tableview。我的代码不工作(拉刷新)有人知道原因吗

在一个普通的UITableview中,它可以工作,但是嗯,也许我缺少了一些stuf,因为它是ViewController中的一个tableview

我正在使用


我使用了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];

}