|
@@ -203,24 +203,23 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
|
|
|
lazy var remindLab: UILabel = {
|
|
lazy var remindLab: UILabel = {
|
|
let remindLab = UILabel()
|
|
let remindLab = UILabel()
|
|
- remindLab.isHidden = true
|
|
|
|
- remindLab.text = "视频已保存至相册,分享秀一下吧😆"
|
|
|
|
|
|
+// remindLab.isHidden = true
|
|
remindLab.font = UIFont.systemFont(ofSize: 14)
|
|
remindLab.font = UIFont.systemFont(ofSize: 14)
|
|
- remindLab.textColor = UIColor.hexColor(hexadecimal: "#CCCCCC")
|
|
|
|
|
|
+ remindLab.textColor = PQBFConfig.shared.styleTitleColor
|
|
remindLab.textAlignment = .center
|
|
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
|
|
return remindLab
|
|
}()
|
|
}()
|
|
|
|
|
|
lazy var shareWechatBtn: UIButton = {
|
|
lazy var shareWechatBtn: UIButton = {
|
|
let shareWechatBtn = UIButton(type: .custom)
|
|
let shareWechatBtn = UIButton(type: .custom)
|
|
- shareWechatBtn.frame = CGRect(x: 0, y: 0, width: 165, height: 100)
|
|
|
|
|
|
+ shareWechatBtn.frame = CGRect(x: 0, y: 0, width: 70, height: 70)
|
|
shareWechatBtn.setImage(UIImage.init().BF_Image(named: "reCreate_opration_wechat"), for: .normal)
|
|
shareWechatBtn.setImage(UIImage.init().BF_Image(named: "reCreate_opration_wechat"), for: .normal)
|
|
- shareWechatBtn.setTitle("分享好友和群", for: .normal)
|
|
|
|
- shareWechatBtn.titleLabel?.font = UIFont.systemFont(ofSize: 16)
|
|
|
|
- shareWechatBtn.setTitleColor(UIColor.white, for: .normal)
|
|
|
|
- shareWechatBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#0F0F14")
|
|
|
|
|
|
+ shareWechatBtn.backgroundColor = PQBFConfig.shared.styleBackGroundColor
|
|
shareWechatBtn.addCorner(corner: 6)
|
|
shareWechatBtn.addCorner(corner: 6)
|
|
- shareWechatBtn.imagePosition(at: .top, space: 5)
|
|
|
|
shareWechatBtn.tag = 1
|
|
shareWechatBtn.tag = 1
|
|
shareWechatBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
shareWechatBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
return shareWechatBtn
|
|
return shareWechatBtn
|
|
@@ -228,14 +227,10 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
|
|
|
lazy var shareFriendBtn: UIButton = {
|
|
lazy var shareFriendBtn: UIButton = {
|
|
let shareFriendBtn = UIButton(type: .custom)
|
|
let shareFriendBtn = UIButton(type: .custom)
|
|
- shareFriendBtn.frame = CGRect(x: 0, y: 0, width: 165, height: 100)
|
|
|
|
|
|
+ shareFriendBtn.frame = CGRect(x: 0, y: 0, width: 70, height: 70)
|
|
shareFriendBtn.setImage(UIImage.init().BF_Image(named: "reCreate_opration_friend"), for: .normal)
|
|
shareFriendBtn.setImage(UIImage.init().BF_Image(named: "reCreate_opration_friend"), for: .normal)
|
|
- shareFriendBtn.setTitle("分享朋友圈", for: .normal)
|
|
|
|
- shareFriendBtn.titleLabel?.font = UIFont.systemFont(ofSize: 16)
|
|
|
|
- shareFriendBtn.setTitleColor(UIColor.white, for: .normal)
|
|
|
|
- shareFriendBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#0F0F14")
|
|
|
|
|
|
+ shareFriendBtn.backgroundColor = PQBFConfig.shared.styleBackGroundColor
|
|
shareFriendBtn.addCorner(corner: 6)
|
|
shareFriendBtn.addCorner(corner: 6)
|
|
- shareFriendBtn.imagePosition(at: .top, space: 5)
|
|
|
|
shareFriendBtn.tag = 2
|
|
shareFriendBtn.tag = 2
|
|
shareFriendBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
shareFriendBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
return shareFriendBtn
|
|
return shareFriendBtn
|
|
@@ -247,7 +242,7 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
finishedBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#999999"), for: .normal)
|
|
finishedBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#999999"), for: .normal)
|
|
finishedBtn.setTitleColor(UIColor.white, for: .selected)
|
|
finishedBtn.setTitleColor(UIColor.white, for: .selected)
|
|
finishedBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13, weight: .medium)
|
|
finishedBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13, weight: .medium)
|
|
- finishedBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#333333")
|
|
|
|
|
|
+ finishedBtn.backgroundColor = PQBFConfig.shared.otherTintColor
|
|
finishedBtn.tag = 3
|
|
finishedBtn.tag = 3
|
|
finishedBtn.addCorner(corner: 3)
|
|
finishedBtn.addCorner(corner: 3)
|
|
finishedBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
finishedBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
@@ -266,8 +261,7 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
// 注册上传成功的通知
|
|
// 注册上传成功的通知
|
|
addNotification(self, selector: #selector(uploadSuccess(notify:)), name: cUploadSuccessKey, object: nil)
|
|
addNotification(self, selector: #selector(uploadSuccess(notify:)), name: cUploadSuccessKey, object: nil)
|
|
PQNotification.addObserver(self, selector: #selector(didBecomeActiveNotification), name: UIApplication.didBecomeActiveNotification, 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
|
|
navHeadImageView?.backgroundColor = UIColor.clear
|
|
lineView?.removeFromSuperview()
|
|
lineView?.removeFromSuperview()
|
|
view.addSubview(bgTopView)
|
|
view.addSubview(bgTopView)
|
|
@@ -304,19 +298,18 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
make.right.equalToSuperview().offset(-12)
|
|
make.right.equalToSuperview().offset(-12)
|
|
}
|
|
}
|
|
shareWechatBtn.snp.makeConstraints { make in
|
|
shareWechatBtn.snp.makeConstraints { make in
|
|
- make.right.equalTo(view.snp_centerX).offset(-6)
|
|
|
|
- make.width.equalTo(165)
|
|
|
|
- make.height.equalTo(cDefaultMargin * 10)
|
|
|
|
|
|
+ make.right.equalTo(view.snp_centerX).offset(-cDefaultMargin)
|
|
|
|
+ make.width.equalTo(70)
|
|
|
|
+ make.height.equalTo(cDefaultMargin * 7)
|
|
make.bottom.equalToSuperview().offset(-(cSafeAreaHeight + 32))
|
|
make.bottom.equalToSuperview().offset(-(cSafeAreaHeight + 32))
|
|
}
|
|
}
|
|
shareFriendBtn.snp.makeConstraints { make in
|
|
shareFriendBtn.snp.makeConstraints { make in
|
|
- make.left.equalTo(view.snp_centerX).offset(6)
|
|
|
|
|
|
+ make.left.equalTo(view.snp_centerX).offset(cDefaultMargin)
|
|
make.width.bottom.height.equalTo(shareWechatBtn)
|
|
make.width.bottom.height.equalTo(shareWechatBtn)
|
|
}
|
|
}
|
|
remindLab.snp.makeConstraints { make in
|
|
remindLab.snp.makeConstraints { make in
|
|
make.centerX.equalToSuperview()
|
|
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
|
|
PQSingletoMemoryUtil.shared.allExportSession.forEach { _, exportSession in
|