【问题标题】:refresh view controller at the end of table in bottom in ios在ios底部的表格末尾刷新视图控制器
【发布时间】:2015-08-27 11:22:55
【问题描述】:

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

必须显示控制器

【问题讨论】:

  • 我真的不明白你的意思。也许重写你的问题?
  • 请编辑您的问题,以便清楚问题是什么。
  • 什么是刷新控制器? :O

标签: ios objective-c iphone uirefreshcontrol


【解决方案1】:

试试这个 -

- (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
    }
    ...
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-08
    • 1970-01-01
    • 2012-06-10
    • 1970-01-01
    • 2013-03-31
    • 1970-01-01
    相关资源
    最近更新 更多