Browse Source

修改UI:loading垂直居中;选则音乐去掉左边留白

huzhiqiang 3 years ago
parent
commit
0ef2dbac70

+ 2 - 1
BFFramework/Classes/Stuckpoint/View/PQSelecteMusicView.swift

@@ -100,6 +100,7 @@ class PQSelecteMusicView: UIView {
         selectMusicCollection.backgroundColor = .clear
         selectMusicCollection.backgroundColor = .clear
         selectMusicCollection.register(PQSelectMusicCell.self, forCellWithReuseIdentifier: String(describing: PQSelectMusicCell.self))
         selectMusicCollection.register(PQSelectMusicCell.self, forCellWithReuseIdentifier: String(describing: PQSelectMusicCell.self))
         selectMusicCollection.delaysContentTouches = false
         selectMusicCollection.delaysContentTouches = false
+        selectMusicCollection.contentInset = UIEdgeInsets(top: 0, left: 17, bottom: 0, right: 0)
         return selectMusicCollection
         return selectMusicCollection
     }()
     }()
 
 
@@ -191,7 +192,7 @@ class PQSelecteMusicView: UIView {
         }
         }
         selectMusicCollection.snp.makeConstraints { make in
         selectMusicCollection.snp.makeConstraints { make in
             make.height.equalTo(131)
             make.height.equalTo(131)
-            make.left.equalToSuperview().offset(17)
+            make.left.equalToSuperview()
             make.right.equalToSuperview()
             make.right.equalToSuperview()
             make.top.equalToSuperview().offset(54)
             make.top.equalToSuperview().offset(54)
         }
         }

+ 2 - 1
BFFramework/Classes/Stuckpoint/View/PQStuckPointLoadingView.swift

@@ -67,8 +67,9 @@ class PQStuckPointLoadingView: UIView {
 
 
     func addLayout() {
     func addLayout() {
         loadingView.snp.makeConstraints { make in
         loadingView.snp.makeConstraints { make in
-            make.top.equalToSuperview().offset(cScreenWidth / 2.0 + cDevice_iPhoneStatusBarHei)
+//            make.top.equalToSuperview().offset(cScreenWidth / 2.0 + cDevice_iPhoneStatusBarHei)
             make.centerX.equalTo(cScreenWidth / 2.0)
             make.centerX.equalTo(cScreenWidth / 2.0)
+            make.centerY.equalTo(cScreenHeigth / 2.0)
             make.width.height.equalTo(cDefaultMargin * 10)
             make.width.height.equalTo(cDefaultMargin * 10)
         }
         }