刷新ios底部表格末尾的视图控制器

时间:2015-08-27 11:22:56

标签: ios objective-c iphone uirefreshcontrol

  

块引用   如何在表的末尾设置iOS中刷新控制器的位置。   上次数据刷新后

必须显示

控制器

1 个答案:

答案 0 :(得分:0)

试试这个 -

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{

    return arrData.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    ...
    if (arrData.count==indexPath.row+1) {
        //call reload method & reload tableView
    }
    ...
}