当表格视图滚动禁用时,表格视图方法不起作用

发布于 2025-01-11 00:53:26 字数 396 浏览 5 评论 0 原文

海斯塔家族 我正面临这个问题。我将 tableview 与其他一些子视图一起放在滚动视图中。我正在制作一个订餐应用程序。当我向上滚动时,我的集合视图将根据我的表格视图部分自动滚动,或者我只是从集合视图中选择我的类别,并且我想在该位置滚动我的表格视图,以便我的应用程序用户将选择要订购的产品。 请帮我解决当我的主滚动视图滚动时如何处理 tableview 委托方法!

func tableView(_ tableView: UITableView,
                        willDisplay cell: UITableViewCell,
                        forRowAt indexPath: IndexPath) {}

当我滚动时,此方法对我不起作用!

Hy Stack family
I am facing the issue. I put tableview in scroll view with some other subviews. I am making an food ordering app. In which when i scroll up so my collection view will automatically scroll according to my tableview section or either i just select my category from collection view and i want to scroll my tableview at that position so my app user will select that product to order.
Plz help me out how can i handle tableview delegate methods when my main scrollview scrolling!

func tableView(_ tableView: UITableView,
                        willDisplay cell: UITableViewCell,
                        forRowAt indexPath: IndexPath) {}

This method is not working for me when i do scrolling!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苹果你个爱泡泡 2025-01-18 00:53:26

1.检查您的委托 img 1 img 2 img 3

  1. 检查您的 numberRows 数据源返回计数值 (count !=0 )
  2. 检查单元格的高度

1.check your delegate img 1 img 2 img 3

  1. check your numberRows DataSource return count values (count !=0 )
  2. check height of cell
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文