Przeglądaj źródła

上传前设置 默认的标题

jsonwang 3 lat temu
rodzic
commit
51117e7d4f

+ 4 - 1
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointPublicController.swift

@@ -49,6 +49,8 @@ class PQStuckPointPublicController: PQBaseViewController {
     var mStickers: [PQEditVisionTrackMaterialsModel]?
 
     var remindView: PQRemindView?
+    //已经选择标题内容,加一个属性接收 使用有不在主线不能直接使用 titleLabel text
+    var selectTitle:String = ""
     // 预览大小
     private var preViewSize: CGSize {
         switch aspectRatio {
@@ -897,7 +899,7 @@ extension PQStuckPointPublicController {
             return
         }
         let tempModel = PQVideoListModel()
-        tempModel.title = ""
+        tempModel.title = selectTitle
         tempModel.summary = ""
         tempModel.duration = CGFloat(uploadData?.duration ?? 0)
         tempModel.uplpadImage = uploadData?.image
@@ -1231,6 +1233,7 @@ extension PQStuckPointPublicController {
 //            self?.titleLabel.frame = CGRect.init(x: self?.titleLabel.frame.origin.x ?? 0, y: self?.titleLabel.frame.origin.y ?? 0, width: self?.titleLabel.frame.width ?? 0, height: 24)
 //        }
 //
+        selectTitle = text
         //更新 UI
         titleLabel.text = text
         titleLabel.textColor = textColor