|
@@ -35,7 +35,7 @@ class PQEditPublicTitleView: UIView {
|
|
inputTV.backgroundColor = .clear
|
|
inputTV.backgroundColor = .clear
|
|
inputTV.textColor = .black
|
|
inputTV.textColor = .black
|
|
inputTV.maxTextLength = 30
|
|
inputTV.maxTextLength = 30
|
|
- inputTV.placeHolderDefultPoint = .zero
|
|
|
|
|
|
+ inputTV.placeHolderDefultPoint = CGPoint(x: 5, y: 0)
|
|
inputTV.tintColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
inputTV.tintColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
inputTV.placeHolder = "我见过你眼中的春与秋,胜过我见过的所有山川河流"
|
|
inputTV.placeHolder = "我见过你眼中的春与秋,胜过我见过的所有山川河流"
|
|
inputTV.showsVerticalScrollIndicator = false
|
|
inputTV.showsVerticalScrollIndicator = false
|
|
@@ -112,7 +112,7 @@ class PQEditPublicTitleView: UIView {
|
|
|
|
|
|
backView.addSubview(inputBgView)
|
|
backView.addSubview(inputBgView)
|
|
inputBgView.addSubview(inputTV)
|
|
inputBgView.addSubview(inputTV)
|
|
-// inputTV.becomeFirstResponder()
|
|
|
|
|
|
+
|
|
inputBgView.addSubview(confirmBtn)
|
|
inputBgView.addSubview(confirmBtn)
|
|
|
|
|
|
backView.addSubview(titleCollectionView)
|
|
backView.addSubview(titleCollectionView)
|
|
@@ -183,6 +183,12 @@ class PQEditPublicTitleView: UIView {
|
|
viewIsHiddenCallBack!()
|
|
viewIsHiddenCallBack!()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //显示界面
|
|
|
|
+ func show() {
|
|
|
|
+ isHidden = false
|
|
|
|
+ inputTV.becomeFirstResponder()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
extension PQEditPublicTitleView: UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UIScrollViewDelegate {
|
|
extension PQEditPublicTitleView: UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UIScrollViewDelegate {
|