소스 검색

使用音乐时也添加 Loading

jsonwang 3 년 전
부모
커밋
a0d9de7266
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      BFFramework/Classes/Stuckpoint/Controller/PQStuckPointEditerController.swift

+ 2 - 0
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointEditerController.swift

@@ -843,6 +843,7 @@ class PQStuckPointEditerController: PQBaseViewController {
     // 设置播放器
     func settingPlayerView() {
         
+        synchroMarskView.removeFromSuperview()
         if synchroMarskView.superview == nil {
             UIApplication.shared.keyWindow?.addSubview(synchroMarskView)
             synchroMarskView.show()
@@ -1615,6 +1616,7 @@ extension PQStuckPointEditerController {
         } else if stuckPointMusicData?.localPath == nil || (stuckPointMusicData?.localPath?.count ?? 0) > 0 {
             if synchroMarskView.superview == nil {
                 UIApplication.shared.keyWindow?.addSubview(synchroMarskView)
+                synchroMarskView.show()
             }
             isStuckPointDataSuccess = true
             PQDownloadManager.downLoadFile(url: stuckPointMusicData?.musicPath ?? "") { [weak self] filePath, error in