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

4.2.0 选择视频后报错及多语言有问题 #681

Closed
areeudh-q opened this issue May 2, 2024 · 2 comments · Fixed by #682
Closed

4.2.0 选择视频后报错及多语言有问题 #681

areeudh-q opened this issue May 2, 2024 · 2 comments · Fixed by #682

Comments

@areeudh-q
Copy link

areeudh-q commented May 2, 2024

  1. app在英文环境下,弹窗依然显示中文
  2. 选择视频后报错Fatal error: Unexpectedly found nil while unwrapping an Optional value: file HXPhotoPicker/PreviewVideoViewCell.swift, line 34
    2024-05-02 11:36:21.605830+0800 Test[34921:764128] Fatal error: Unexpectedly found nil while unwrapping an Optional value: file HXPhotoPicker/PreviewVideoViewCell.swift, line 34
override init(frame: CGRect) {
        super.init(frame: frame)
        scrollContentView = PhotoPreviewContentVideoView()
        scrollContentView.delegate = self
        scrollContentView.videoView.delegate = self
        initView()
        playButton = UIButton.init(type: UIButton.ButtonType.custom)
        playButton.setImage(.imageResource.picker.preview.videoPlay.image, for: UIControl.State.normal)
        playButton.setImage(UIImage.init(), for: UIControl.State.selected)
        playButton.addTarget(self, action: #selector(didPlayButtonClick(button:)), for: UIControl.Event.touchUpInside)
// 下面那句代码报错
        playButton.size = playButton.currentImage!.size
        playButton.alpha = 0
        addSubview(playButton)
    }
@areeudh-q areeudh-q changed the title 4.2.0 多语言有问题 4.2.0 选择视频后报错及多语言有问题 May 2, 2024
@SilenceLove
Copy link
Owner

Demo 没问题

@areeudh-q
Copy link
Author

我用 HXPhotoPicker/NoLocation 会有问题
但用 HXPhotoPicker 就没有问题。很奇怪

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

Successfully merging a pull request may close this issue.

2 participants