Pārlūkot izejas kodu

修改字色和字号

jsonwang 3 gadi atpakaļ
vecāks
revīzija
10eb8fc988

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

@@ -44,7 +44,11 @@ class BFMusicSearchController: BFBaseViewController {
         searchTF.leftView = leftv
         searchTF.leftViewMode = .always
         searchTF.clearButtonMode = .whileEditing
-        searchTF.placeholder = "歌名/歌手名"
+       
+        let redPlaceholderText = NSAttributedString(string: "歌名/歌手名",
+                                                    attributes: [NSAttributedString.Key.foregroundColor:  UIColor.hexColor(hexadecimal: "#BDBDBD"),NSAttributedString.Key.font:UIFont.systemFont(ofSize: 14,weight: .regular)])
+        searchTF.attributedPlaceholder = redPlaceholderText
+        searchTF.font = UIFont.systemFont(ofSize: 14,weight: .regular)
         searchTF.delegate = self
         searchTF.returnKeyType = .search
         searchTF.textColor = UIColor.white
@@ -201,6 +205,7 @@ extension BFMusicSearchController : UITableViewDelegate, UITableViewDataSource {
                 var bgmList = [PQVoiceModel]()
                 if response is NSNull || response == nil {
                     DispatchQueue.main.async {
+
                         cShowHUB(superView: nil, msg: "网络连接失败,请检查网络后重试")
                     }
                     return