Просмотр исходного кода

使用音乐时也添加 Loading

jsonwang 3 лет назад
Родитель
Сommit
a0d9de7266

+ 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