Browse Source

ui 位置调整

jsonwang 3 năm trước cách đây
mục cha
commit
8cfe41946c

+ 3 - 1
BFFramework/Classes/Stuckpoint/View/PQEditPublicTitleView.swift

@@ -35,9 +35,11 @@ class PQEditPublicTitleView: UIView {
         inputTV.backgroundColor = .clear
         inputTV.textColor = .black
         inputTV.maxTextLength = 30
+        inputTV.placeHolderDefultPoint = .zero
         inputTV.tintColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
         inputTV.placeHolder = "我见过你眼中的春与秋,胜过我见过的所有山川河流"
         inputTV.showsVerticalScrollIndicator = false
+        inputTV.textContainerInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
         return inputTV
     }()
 
@@ -266,7 +268,7 @@ class PQEditPublicTitleViewContentCell: UICollectionViewCell {
             make.height.equalTo(textSize.height * cAdaptatWidth)
             make.right.equalToSuperview().offset(-64)
             make.left.equalToSuperview().offset(16)
-            make.top.equalToSuperview().offset(14)
+            make.top.equalToSuperview().offset(12)
         }
   
         lineView.snp.makeConstraints { make in