瀏覽代碼

显示时间位置上移

jsonwang 3 年之前
父節點
當前提交
77b293a667
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      BFFramework/Classes/Stuckpoint/ViewModel/PQGPUImagePlayerView.swift

+ 2 - 2
BFFramework/Classes/Stuckpoint/ViewModel/PQGPUImagePlayerView.swift

@@ -182,7 +182,7 @@ public class PQGPUImagePlayerView: UIView {
 
 
     // 播放进度/总时长
     // 播放进度/总时长
     lazy var progressLab: UILabel = {
     lazy var progressLab: UILabel = {
-        let titleLab = UILabel(frame: CGRect(x: (self.frame.size.width - 140) / 2, y: 10, width: 140, height: 12))
+        let titleLab = UILabel(frame: CGRect(x: (self.frame.size.width - 140) / 2, y: 0, width: 140, height: 12))
         titleLab.font = UIFont.systemFont(ofSize: 12, weight: .medium)
         titleLab.font = UIFont.systemFont(ofSize: 12, weight: .medium)
         titleLab.textColor = UIColor.white
         titleLab.textColor = UIColor.white
         titleLab.textAlignment = .center
         titleLab.textAlignment = .center
@@ -310,7 +310,7 @@ public class PQGPUImagePlayerView: UIView {
         playerEmptyView.frame = CGRect(x: 0, y: 0, width: self.frame.size.width, height: self.frame.size.height)
         playerEmptyView.frame = CGRect(x: 0, y: 0, width: self.frame.size.width, height: self.frame.size.height)
         playMaskView.frame = CGRect.init(x: 0, y: 0, width: self.frame.width, height: self.frame.height)
         playMaskView.frame = CGRect.init(x: 0, y: 0, width: self.frame.width, height: self.frame.height)
         tipLab.frame = CGRect(x: (self.frame.size.width - 100) / 2, y: (self.frame.size.height - 14) / 2, width: 100, height: 14)
         tipLab.frame = CGRect(x: (self.frame.size.width - 100) / 2, y: (self.frame.size.height - 14) / 2, width: 100, height: 14)
-        progressLab.frame = CGRect(x: (self.frame.size.width - 140) / 2, y: 10, width: 140, height: 14)
+        progressLab.frame = CGRect(x: (self.frame.size.width - 140) / 2, y: 8, width: 140, height: 14)
         playView.frame = CGRect(x: (self.frame.size.width - self.frame.size.height / 3.6) / 2, y: (self.frame.size.height - self.frame.size.height / 3.6) / 2, width: self.frame.size.height / 3.6, height: self.frame.size.height / 3.6)
         playView.frame = CGRect(x: (self.frame.size.width - self.frame.size.height / 3.6) / 2, y: (self.frame.size.height - self.frame.size.height / 3.6) / 2, width: self.frame.size.height / 3.6, height: self.frame.size.height / 3.6)
     }
     }