|
@@ -7,11 +7,12 @@
|
|
|
|
|
|
import BFCommonKit
|
|
import BFCommonKit
|
|
import BFRecordScreenKit
|
|
import BFRecordScreenKit
|
|
-import BFUIKit
|
|
|
|
import Foundation
|
|
import Foundation
|
|
import Photos
|
|
import Photos
|
|
import UIKit
|
|
import UIKit
|
|
import BFAnalyzeKit
|
|
import BFAnalyzeKit
|
|
|
|
+import BFUIKit
|
|
|
|
+
|
|
|
|
|
|
class INIntroduceController: BFBaseViewController {
|
|
class INIntroduceController: BFBaseViewController {
|
|
lazy var stripSwithView : BFStripSwithView = {
|
|
lazy var stripSwithView : BFStripSwithView = {
|
|
@@ -164,22 +165,24 @@ class INIntroduceController: BFBaseViewController {
|
|
}
|
|
}
|
|
if recordScreenVC.isNormalPlaying {
|
|
if recordScreenVC.isNormalPlaying {
|
|
recordScreenVC.pause()
|
|
recordScreenVC.pause()
|
|
-// recordScreenVC.playVideo(btn: recordScreenVC.playBtn)
|
|
|
|
}
|
|
}
|
|
- let alertv = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ let alee = BFActionSheetView()
|
|
|
|
+
|
|
if recordScreenVC.itemModels.count > 0 && recordScreenVC.itemModels.last!.mediaType != .Camera {
|
|
if recordScreenVC.itemModels.count > 0 && recordScreenVC.itemModels.last!.mediaType != .Camera {
|
|
- let action = UIAlertAction(title: "拍摄录制", style: .default) {[weak self] action in
|
|
|
|
|
|
+ alee.addAction(title: "拍摄录制", sheetStyle: .defalt) {[weak self] in
|
|
guard let wself = self else { return }
|
|
guard let wself = self else { return }
|
|
-
|
|
|
|
|
|
+
|
|
let phAsset = PHAsset()
|
|
let phAsset = PHAsset()
|
|
phAsset.title = "record.camera"
|
|
phAsset.title = "record.camera"
|
|
wself.updateAsset([phAsset])
|
|
wself.updateAsset([phAsset])
|
|
}
|
|
}
|
|
- alertv.addAction(action)
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- let action1 = UIAlertAction(title: "从相册选择", style: .destructive) {[weak self] action in
|
|
|
|
|
|
+ alee.addAction(title: "从相册选择", sheetStyle: .defalt) {[weak self] in
|
|
guard let wself = self else { return }
|
|
guard let wself = self else { return }
|
|
|
|
+
|
|
let vc = INPhotoVideosController()
|
|
let vc = INPhotoVideosController()
|
|
vc.maxMaterialNum = 20 - wself.recordScreenVC.itemModels.count
|
|
vc.maxMaterialNum = 20 - wself.recordScreenVC.itemModels.count
|
|
vc.modalPresentationStyle = .fullScreen
|
|
vc.modalPresentationStyle = .fullScreen
|
|
@@ -191,12 +194,44 @@ class INIntroduceController: BFBaseViewController {
|
|
|
|
|
|
wself.navigationController?.present(vc, animated: true, completion: nil)
|
|
wself.navigationController?.present(vc, animated: true, completion: nil)
|
|
}
|
|
}
|
|
- alertv.addAction(action1)
|
|
|
|
|
|
+ alee.addAction(title: "取消", sheetStyle: .cancle, handler: nil)
|
|
|
|
+ alee.show()
|
|
|
|
|
|
- let action2 = UIAlertAction(title: "取消", style: .cancel, handler: nil)
|
|
|
|
- alertv.addAction(action2)
|
|
|
|
-
|
|
|
|
- self.present(alertv, animated: true, completion: nil)
|
|
|
|
|
|
+// let alertv = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
|
|
|
|
+// if let subview = alertv.view.subviews.first?.subviews.first?.subviews.first {
|
|
|
|
+// subview.backgroundColor = .black
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// if recordScreenVC.itemModels.count > 0 && recordScreenVC.itemModels.last!.mediaType != .Camera {
|
|
|
|
+// let action = UIAlertAction(title: "拍摄录制", style: .default) {[weak self] action in
|
|
|
|
+// guard let wself = self else { return }
|
|
|
|
+//
|
|
|
|
+// let phAsset = PHAsset()
|
|
|
|
+// phAsset.title = "record.camera"
|
|
|
|
+// wself.updateAsset([phAsset])
|
|
|
|
+// }
|
|
|
|
+// alertv.addAction(action)
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// let action1 = UIAlertAction(title: "从相册选择", style: .destructive) {[weak self] action in
|
|
|
|
+// guard let wself = self else { return }
|
|
|
|
+// let vc = INPhotoVideosController()
|
|
|
|
+// vc.maxMaterialNum = 20 - wself.recordScreenVC.itemModels.count
|
|
|
|
+// vc.modalPresentationStyle = .fullScreen
|
|
|
|
+// vc.nextBtnCallBack = {[weak self] phAssets in
|
|
|
|
+// guard let wself = self else { return }
|
|
|
|
+//
|
|
|
|
+// wself.updateAsset(phAssets)
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// wself.navigationController?.present(vc, animated: true, completion: nil)
|
|
|
|
+// }
|
|
|
|
+// alertv.addAction(action1)
|
|
|
|
+//
|
|
|
|
+// let action2 = UIAlertAction(title: "取消", style: .cancel, handler: nil)
|
|
|
|
+// alertv.addAction(action2)
|
|
|
|
+//
|
|
|
|
+// self.present(alertv, animated: true, completion: nil)
|
|
}
|
|
}
|
|
|
|
|
|
override func backBtnClick() {
|
|
override func backBtnClick() {
|