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

RTL布局下,使用QMUIImagePreviewView的问题 #1535

Open
nouslove opened this issue Nov 15, 2023 · 0 comments
Open

RTL布局下,使用QMUIImagePreviewView的问题 #1535

nouslove opened this issue Nov 15, 2023 · 0 comments

Comments

@nouslove
Copy link

Bug 表现
问题的具体描述
RTL布局下,在QMUIImagePreviewView初始化对象时使用setCurrentImageIndex的方法强制将图片滚动到指定的 index无效,必须在
viewDidAppear的方法中使用才会生效,但是这样会造成- (void)imagePreviewView:(QMUIImagePreviewView *)imagePreviewView renderZoomImageView:(QMUIZoomImageView *)zoomImageView atIndex:(NSUInteger)index 这个方法先调用一次,返回的index是0,显示第一张图片,然后在调用viewDidAppear中的setCurrentImageIndex方法,显示第N张图片,就会看到图片闪一下的切换过程。

截图
Bug 现场的界面截图,或者 Xcode 控制台的错误信息截图,有问题的代码截图

如何重现

  1. ...
  2. ...

预期的表现
正常情况下,应该是什么表现

其他信息

  • 设备: [例如模拟器、iPhone、iPad]
  • iOS 版本: [iOS 14.x]
  • Xcode 版本: [Xcode 12.x]
  • QMUI 版本: [4.x.x]
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

1 participant