|
@@ -33,8 +33,10 @@ class PublishUploadProgressView: FWPopupView {
|
|
|
didSet {
|
|
|
progressView.setProgress(self.uploadProgress ?? 0, animated: true)
|
|
|
|
|
|
- let proValueStr: String = String(format: "%.0f", self.uploadProgress ?? 0*100)
|
|
|
- progressLabel.text = "正在上传中(\(proValueStr)%)..."
|
|
|
+ var progressValue: Float = self.uploadProgress ?? 0
|
|
|
+ progressValue = progressValue * 100
|
|
|
+ let proValueStr: String = String(format: "正在上传中%.0f%%", progressValue)
|
|
|
+ progressLabel.text = proValueStr
|
|
|
}
|
|
|
}
|
|
|
|