Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollToRowAtIndexPath 导致Footer漏出来了 #1598

Open
iCloudys opened this issue Jan 5, 2024 · 1 comment
Open

scrollToRowAtIndexPath 导致Footer漏出来了 #1598

iCloudys opened this issue Jan 5, 2024 · 1 comment
Labels

Comments

@iCloudys
Copy link

iCloudys commented Jan 5, 2024

描述bug
UITableView使用scrollToRowAtIndexPath方法后,底部的footer漏出来了,但是稍微滚动一下屏幕就恢复正常了,这里是最小Demo,直接运行到模拟器等待3s即可自动复现
MJFooterDemo.zip

必现/偶发?
必现

怎么样重现这个bug

  1. 显示哪个页面
    直接运行提供的demo就行
  2. 点击哪个位置
    等到3s,会自动触发bug
  3. 滚动到哪个位置
  4. 发生了什么错误
    footer漏出来了

你期望的结果是什么?
期望footer不要漏出来,和正常滚动一样

截图
如果有必要的话,请上传几张截图

运行环境

  • iPhone6
  • iOS8.1
  • Xcode10

额外的
Simulator Screenshot - iPhone 14 Pro - 2024-01-05 at 14 44 43

最好能提供出现bug的Demo

@iCloudys iCloudys added the bug label Jan 5, 2024
@iCloudys
Copy link
Author

iCloudys commented Jan 6, 2024

自问自答一下吧,暂时使用此方法解决了,坐等大神提供方案 CGRect rect = [self.tableView rectForRowAtIndexPath:indexPath]; [self.tableView setContentOffset:rect.origin animated:NO];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant