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

进入相册界面查看相片时单击会回到第一张 #103

Closed
JianMingFu opened this issue Sep 30, 2017 · 15 comments
Closed

进入相册界面查看相片时单击会回到第一张 #103

JianMingFu opened this issue Sep 30, 2017 · 15 comments

Comments

@JianMingFu
Copy link

进入相册界面查看相片时单击会回到第一张,比如说我点击查看的是第10张,然后我滑动查看到了第15张,我单点后又回到了第10张,感觉不是很适合习惯

@longitachi
Copy link
Owner

你好,我没太看懂你描述的意思,单点后又回到第十张是什么意思,可不可以整一个gif或者详细描述下操作步骤?

@JianMingFu
Copy link
Author

@JianMingFu
Copy link
Author

好像是适配问题 我这个是用5s 九点几的版本测的,但是我用6 ios11测的话又没问题

@JianMingFu
Copy link
Author

看到我发的视频了吗

@longitachi
Copy link
Owner

看到了。但是我用iPhone 8的模拟器去点,没有点出来这个问题

@JianMingFu
Copy link
Author

所以我说是适配问题呀。

@JianMingFu
Copy link
Author

库功能挺全的,这个倒是小问题 star

@longitachi
Copy link
Owner

我这边没有5s 9.多的机器。 只有10的机器,苹果关闭验证了,也刷不下去了

@JianMingFu
Copy link
Author

模拟器上应该可以选择的吧

@longitachi
Copy link
Owner

我在iOS 8.1模拟器上点出来了,我看下找找原因

@JianMingFu
Copy link
Author

我用其他机型测了一下,好像ios8/9下就会出现这个问题 ios11不会

@longitachi
Copy link
Owner

longitachi commented Sep 30, 2017

在iOS 8/9 下面,单点之后会比11机型上多走一个scrollviewdidscroll的方法,这里面取_collectionView的contentoffset值,不是正确的contentoffset值。感觉这是苹果的bug吧,更新11之前都没问题,我下载之前的版本试试,找找原因

@JianMingFu
Copy link
Author

反正每次更新都会出点幺蛾子。。。好像又更新版本了

@longitachi
Copy link
Owner

找到原因了,不知道为啥设置一下这个view的坐标会导致出现这个问题,
aede8338-ab8c-4326-9658-87adcb7e486c

把方法改为这个就好了,不应该算坐标的

- (void)handlerSingleTap
{
    _hideNavBar = !_hideNavBar;
    
    _navView.hidden = _hideNavBar;
    _bottomView.hidden = _hideNavBar;
}

@JianMingFu
Copy link
Author

嗯,解决问题了!

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

No branches or pull requests

2 participants