Pārlūkot izejas kodu

去掉删除按钮

jsonwang 3 gadi atpakaļ
vecāks
revīzija
deeb7bfc2d

+ 1 - 1
BFRecordScreenKit/Classes/RecordScreen/Controller/BFMusicSearchController.swift

@@ -47,7 +47,7 @@ class BFMusicSearchController: BFBaseViewController {
         leftv.addSubview(iv)
         searchTF.leftView = leftv
         searchTF.leftViewMode = .always
-        searchTF.clearButtonMode = .whileEditing
+        searchTF.clearButtonMode = .never
        
         let redPlaceholderText = NSAttributedString(string: "歌名/歌手名",
                                                     attributes: [NSAttributedString.Key.foregroundColor:  UIColor.hexColor(hexadecimal: "#BDBDBD"),NSAttributedString.Key.font:UIFont.systemFont(ofSize: 14,weight: .regular)])