|
@@ -14,6 +14,10 @@ import Kingfisher
|
|
import BFCommonKit
|
|
import BFCommonKit
|
|
import Alamofire
|
|
import Alamofire
|
|
|
|
|
|
|
|
+
|
|
|
|
+//mdf by ak 按 UI图 下方操作区的高度是固定的, 其它区高度和设备自适应
|
|
|
|
+public let bottomOprationBgViewHeight:CGFloat = 322.0
|
|
|
|
+
|
|
class PQStuckPointPublicController: PQBaseViewController {
|
|
class PQStuckPointPublicController: PQBaseViewController {
|
|
private var isShared: Bool = false // 是否在分享
|
|
private var isShared: Bool = false // 是否在分享
|
|
private var isExportSuccess: Bool = false // 是否导出完成
|
|
private var isExportSuccess: Bool = false // 是否导出完成
|
|
@@ -36,10 +40,11 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
var selectedDataCount: Int = 0
|
|
var selectedDataCount: Int = 0
|
|
// 选择的图片总数-统计使用
|
|
// 选择的图片总数-统计使用
|
|
var selectedImageDataCount: Int = 0
|
|
var selectedImageDataCount: Int = 0
|
|
|
|
+
|
|
// 最大的宽度
|
|
// 最大的宽度
|
|
private var maxWidth: CGFloat = cScreenWidth
|
|
private var maxWidth: CGFloat = cScreenWidth
|
|
// 最大的高度
|
|
// 最大的高度
|
|
- private var maxHeight: CGFloat = cScreenHeigth > 568 ? 385 : 385*cScreenHeigth/818
|
|
|
|
|
|
+ private var maxHeight: CGFloat = cScreenHeigth - bottomOprationBgViewHeight - cDevice_iPhoneNavBarAndStatusBarHei
|
|
// 开始导出的时间
|
|
// 开始导出的时间
|
|
private let startExportDate: Float64 = Date().timeIntervalSince1970
|
|
private let startExportDate: Float64 = Date().timeIntervalSince1970
|
|
// 导出结束的时间
|
|
// 导出结束的时间
|
|
@@ -414,7 +419,7 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
|
|
|
// 除了播放器以外的 下半部分操作区
|
|
// 除了播放器以外的 下半部分操作区
|
|
lazy var bottomOprationBgView: UIView = {
|
|
lazy var bottomOprationBgView: UIView = {
|
|
- let bottomOprationBgView = UIView(frame: CGRect(x: 0, y: cDevice_iPhoneNavBarAndStatusBarHei + maxHeight, width: cScreenWidth, height: view.frame.height - cDevice_iPhoneNavBarAndStatusBarHei - maxHeight))
|
|
|
|
|
|
+ let bottomOprationBgView = UIView(frame: CGRect(x: 0, y: cDevice_iPhoneNavBarAndStatusBarHei + maxHeight, width: cScreenWidth, height: bottomOprationBgViewHeight))
|
|
bottomOprationBgView.backgroundColor = .clear
|
|
bottomOprationBgView.backgroundColor = .clear
|
|
bottomOprationBgView.isHidden = true
|
|
bottomOprationBgView.isHidden = true
|
|
return bottomOprationBgView
|
|
return bottomOprationBgView
|