Xamarin iOS、UITableView、滚动加载更多 [英] Xamarin iOS, UITableView, Scroll to load more

查看:26
本文介绍了Xamarin iOS、UITableView、滚动加载更多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

能否请您分享代码片段或将我引向 xamarin 文档、如何实现 UITableView、滚动以加载更多功能.

Can you please share code snippets or direct me to the xamarin docs, how to implement UITableView, scroll to load more functionality.

如何检测tableview是否已经滚动到底部?

How to detect if the tableview has scrolled to the bottom?

提前致谢!

推荐答案

在TableViewSource类内部重写这个方法

inside the TableViewSource class override this method

public override void WillDisplay (UITableView tableView, UITableViewCell cell, NSIndexPath     indexPath)
    {

        if (indexPath.Row == tableItems.Count - 1) {
            //Reload your data here
        }
    }

这篇关于Xamarin iOS、UITableView、滚动加载更多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆