We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
把mjrefreshheader.m中
谢谢
试一下
遇到同样的问题,总不能每次重新pod都去改代码吧?希望得到回复,应该怎么解决?
一个界面上面有多个选择按钮 选择了都是自动下拉刷新 如果网速太慢 一直选择 下拉箭头和字就会一直往下走 如果清空数组 还会出现闪退
if (self.tableView.mj_header.scrollViewOriginalInset.top > 0 && self.tableView.mj_header.state == MJRefreshState.idle) { let oldContentInset = self.tableView.contentInset; self.tableView.contentInset = UIEdgeInsets.init(top: 0, left: oldContentInset.left, bottom: oldContentInset.bottom, right: oldContentInset.right); }
我是这样解决的,在viewwillappear里面加这段代码,需要判断下当前状态,直接设置成为会把上拉刷新给移到屏幕外了
why remove 'if(self.window == nil)' can fix this problem?
why remove 'if(self.window == nil)' can fix this problem? 同问
虽然临时解决了问题,但总归不是完美的方案啊,话说李明杰老师为毛不在 pod 的文件中改一下呢?
因为当当前VC不可见时,view.widonw 会为nil,所以代码就不会继续执行复原操作。
Activity
sun8801 commentedon Apr 28, 2017
把mjrefreshheader.m中
if(self.window == nil) return;注释掉应该没问题了
XHJiang commentedon May 2, 2017
谢谢
ShenYj commentedon May 22, 2017
试一下
suxiaoyao commentedon Jun 27, 2017
遇到同样的问题,总不能每次重新pod都去改代码吧?希望得到回复,应该怎么解决?
hangshaoSH commentedon Aug 15, 2017
一个界面上面有多个选择按钮 选择了都是自动下拉刷新 如果网速太慢 一直选择 下拉箭头和字就会一直往下走 如果清空数组 还会出现闪退
sjjvenu commentedon Dec 29, 2017
我是这样解决的,在viewwillappear里面加这段代码,需要判断下当前状态,直接设置成为会把上拉刷新给移到屏幕外了
leirenbaobao commentedon Jul 3, 2018
why remove 'if(self.window == nil)' can fix this problem?
Yulei-Duan commentedon Jul 11, 2018
why remove 'if(self.window == nil)' can fix this problem? 同问
AAChartModel commentedon Aug 2, 2018
虽然临时解决了问题,但总归不是完美的方案啊,话说李明杰老师为毛不在 pod 的文件中改一下呢?
sun8801 commentedon Aug 6, 2018
因为当当前VC不可见时,view.widonw 会为nil,所以代码就不会继续执行复原操作。
1 remaining item