|
@@ -204,39 +204,22 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
lazy var remindLab: UILabel = {
|
|
|
let remindLab = UILabel()
|
|
|
remindLab.isHidden = true
|
|
|
- remindLab.text = "视频已保存至相册,分享秀一下吧😆"
|
|
|
remindLab.font = UIFont.systemFont(ofSize: 14)
|
|
|
- remindLab.textColor = UIColor.hexColor(hexadecimal: "#CCCCCC")
|
|
|
+ remindLab.textColor = PQBFConfig.shared.styleTitleColor
|
|
|
remindLab.textAlignment = .center
|
|
|
+ remindLab.numberOfLines = 2
|
|
|
+ let arr = NSMutableAttributedString.init(string: "制作完成啦🎉\n快分享秀一下")
|
|
|
+ arr.addAttributes([.font : UIFont.systemFont(ofSize: 30)], range: NSRange.init(location: arr.length - 6, length: 6))
|
|
|
+ remindLab.attributedText = arr
|
|
|
return remindLab
|
|
|
}()
|
|
|
-
|
|
|
- lazy var tips1Lab: UILabel = {
|
|
|
- let tips1Lab = UILabel()
|
|
|
- tips1Lab.text = "制作完成啦"
|
|
|
- tips1Lab.font = UIFont.systemFont(ofSize: 19)
|
|
|
- tips1Lab.textColor = UIColor.hexColor(hexadecimal: "#CCCCCC")
|
|
|
- tips1Lab.textAlignment = .center
|
|
|
- return tips1Lab
|
|
|
- }()
|
|
|
-
|
|
|
-
|
|
|
- lazy var tips2Lab: UILabel = {
|
|
|
- let tips1Lab = UILabel()
|
|
|
- tips1Lab.text = "快分享秀一下"
|
|
|
- tips1Lab.font = UIFont.boldSystemFont(ofSize: 34)
|
|
|
- tips1Lab.textColor = UIColor.hexColor(hexadecimal: "#CCCCCC")
|
|
|
- tips1Lab.textAlignment = .center
|
|
|
- return tips1Lab
|
|
|
- }()
|
|
|
|
|
|
lazy var shareWechatBtn: UIButton = {
|
|
|
let shareWechatBtn = UIButton(type: .custom)
|
|
|
shareWechatBtn.frame = CGRect(x: 0, y: 0, width: 70, height: 70)
|
|
|
shareWechatBtn.setImage(UIImage.init().BF_Image(named: "reCreate_opration_wechat"), for: .normal)
|
|
|
-
|
|
|
- shareWechatBtn.titleLabel?.font = UIFont.systemFont(ofSize: 16)
|
|
|
- shareWechatBtn.setTitleColor(UIColor.white, for: .normal)
|
|
|
+ shareWechatBtn.backgroundColor = PQBFConfig.shared.styleBackGroundColor
|
|
|
+ shareWechatBtn.addCorner(corner: 6)
|
|
|
shareWechatBtn.tag = 1
|
|
|
shareWechatBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
|
return shareWechatBtn
|
|
@@ -246,8 +229,8 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
let shareFriendBtn = UIButton(type: .custom)
|
|
|
shareFriendBtn.frame = CGRect(x: 0, y: 0, width: 70, height: 70)
|
|
|
shareFriendBtn.setImage(UIImage.init().BF_Image(named: "reCreate_opration_friend"), for: .normal)
|
|
|
- shareFriendBtn.titleLabel?.font = UIFont.systemFont(ofSize: 16)
|
|
|
- shareFriendBtn.setTitleColor(UIColor.white, for: .normal)
|
|
|
+ shareFriendBtn.backgroundColor = PQBFConfig.shared.styleBackGroundColor
|
|
|
+ shareFriendBtn.addCorner(corner: 6)
|
|
|
shareFriendBtn.tag = 2
|
|
|
shareFriendBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
|
return shareFriendBtn
|
|
@@ -259,7 +242,7 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
finishedBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#999999"), for: .normal)
|
|
|
finishedBtn.setTitleColor(UIColor.white, for: .selected)
|
|
|
finishedBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13, weight: .medium)
|
|
|
- finishedBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#333333")
|
|
|
+ finishedBtn.backgroundColor = PQBFConfig.shared.otherTintColor
|
|
|
finishedBtn.tag = 3
|
|
|
finishedBtn.addCorner(corner: 3)
|
|
|
finishedBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
@@ -278,8 +261,7 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
// 注册上传成功的通知
|
|
|
addNotification(self, selector: #selector(uploadSuccess(notify:)), name: cUploadSuccessKey, object: nil)
|
|
|
PQNotification.addObserver(self, selector: #selector(didBecomeActiveNotification), name: UIApplication.didBecomeActiveNotification, object: nil)
|
|
|
- leftButton(image: "upload_back")
|
|
|
- view.backgroundColor = UIColor.hexColor(hexadecimal: "#262626")
|
|
|
+ leftButton(image: "icon_detail_back",tintColor: PQBFConfig.shared.styleTitleColor)
|
|
|
navHeadImageView?.backgroundColor = UIColor.clear
|
|
|
lineView?.removeFromSuperview()
|
|
|
view.addSubview(bgTopView)
|
|
@@ -296,8 +278,6 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
view.addSubview(remindLab)
|
|
|
view.addSubview(shareWechatBtn)
|
|
|
view.addSubview(shareFriendBtn)
|
|
|
- view.addSubview(tips2Lab)
|
|
|
- view.addSubview(tips1Lab)
|
|
|
navHeadImageView?.addSubview(finishedBtn)
|
|
|
view.addSubview(oprationBgView)
|
|
|
oprationBgView.addSubview(progressTipsLab)
|
|
@@ -318,34 +298,18 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
make.right.equalToSuperview().offset(-12)
|
|
|
}
|
|
|
shareWechatBtn.snp.makeConstraints { make in
|
|
|
- make.right.equalTo(view.snp_centerX).offset(-12)
|
|
|
+ make.right.equalTo(view.snp_centerX).offset(-cDefaultMargin)
|
|
|
make.width.equalTo(70)
|
|
|
- make.height.equalTo(70)
|
|
|
+ make.height.equalTo(cDefaultMargin * 7)
|
|
|
make.bottom.equalToSuperview().offset(-(cSafeAreaHeight + 32))
|
|
|
}
|
|
|
shareFriendBtn.snp.makeConstraints { make in
|
|
|
- make.left.equalTo(view.snp_centerX).offset(12)
|
|
|
+ make.left.equalTo(view.snp_centerX).offset(cDefaultMargin)
|
|
|
make.width.bottom.height.equalTo(shareWechatBtn)
|
|
|
}
|
|
|
-
|
|
|
- tips2Lab.snp.makeConstraints { make in
|
|
|
- make.centerX.equalToSuperview()
|
|
|
- make.width.equalTo(34*7)
|
|
|
- make.height.equalTo(34)
|
|
|
- make.bottom.equalTo(shareFriendBtn.snp_top).offset(-21)
|
|
|
- }
|
|
|
-
|
|
|
- tips1Lab.snp.makeConstraints { make in
|
|
|
- make.centerX.equalToSuperview()
|
|
|
- make.width.equalTo(19*7)
|
|
|
- make.height.equalTo(19)
|
|
|
- make.bottom.equalTo(tips2Lab.snp_top).offset(-3)
|
|
|
- }
|
|
|
-
|
|
|
remindLab.snp.makeConstraints { make in
|
|
|
make.centerX.equalToSuperview()
|
|
|
- make.height.equalTo(cDefaultMargin * 4)
|
|
|
- make.bottom.equalTo(shareWechatBtn.snp_top).offset(-cDefaultMargin)
|
|
|
+ make.bottom.equalTo(shareWechatBtn.snp_top).offset(-cDefaultMargin * 2)
|
|
|
}
|
|
|
// 取消所有的导出
|
|
|
PQSingletoMemoryUtil.shared.allExportSession.forEach { _, exportSession in
|