فهرست منبع

1.merge pre-master

wenweiwei 3 سال پیش
والد
کامیت
8ad00b6faf

+ 2 - 2
Introduce.xcodeproj/project.pbxproj

@@ -478,7 +478,7 @@
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_IDENTITY = "Apple Development";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 10;
+				CURRENT_PROJECT_VERSION = 11;
 				DEVELOPMENT_TEAM = UH52C8A7SN;
 				ENABLE_BITCODE = NO;
 				EXCLUDED_ARCHS = "";
@@ -519,7 +519,7 @@
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_IDENTITY = "Apple Development";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 10;
+				CURRENT_PROJECT_VERSION = 11;
 				DEVELOPMENT_TEAM = UH52C8A7SN;
 				ENABLE_BITCODE = NO;
 				EXCLUDED_ARCHS = "";

+ 8 - 0
Introduce/Aarchitecture/AppDelegate.swift

@@ -8,6 +8,7 @@
 import BFCommonKit
 import BFMaterialKit
 import UIKit
+import AppTrackingTransparency
 
 @main
 class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -55,5 +56,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
             INAppConfigUtil.appLaunchReportUpload(isHotLaunch: true)
             isEnterBack = false
         }
+        DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1) {
+            if #available(iOS 14, *) {
+                ATTrackingManager.requestTrackingAuthorization { status in
+                    
+                }
+            }
+        }
     }
 }

+ 2 - 2
Introduce/Record/INIntroduceController.swift

@@ -112,9 +112,9 @@ class INIntroduceController: BFBaseViewController {
 
         let okAction = UIAlertAction(title: "option_exit".BFLocale, style: .cancel, handler: {[weak self]
            action in
-           print("点击了确定")
            self?.recordScreenVC.backBtnClick()
-            self?.super_back()
+//            self?.super_back()
+            self?.navigationController?.popToRootViewController(animated: true)
         })
         okAction.setValue(UIColor.red, forKey:"titleTextColor")
 

+ 0 - 1
Introduce/Record/INPhotoVideosController.swift

@@ -104,7 +104,6 @@ class INPhotoVideosController: BFBaseViewController {
     lazy var photoMaterialVc: BFPhotosMaterialController = {
         let vc = BFPhotosMaterialController()
         vc.maxChoseNum = 20
-        vc.msgType = .all
         vc.showGIF = false
         vc.view.backgroundColor = .black
         vc.updateFrame(newFrame: CGRect(x: 0, y: navHeadImageView?.bottomY ?? 0, width: cScreenWidth, height: cScreenHeigth - cDevice_iPhoneTabBarHei - (navHeadImageView?.bottomY ?? 0)))

+ 35 - 15
Introduce/Record/INRecorderController.swift

@@ -21,9 +21,12 @@ class INRecorderController: BFBaseViewController {
     
     lazy var addVideoBtn: UIButton = {
         let btn = UIButton(type: .custom)
-        //        btn.setTitle("Add", for: .normal)
         btn.setImage(UIImage(named: "add"), for: .normal)
+        btn.setTitle("从相册选择", for: .normal)
+        btn.setTitleColor(UIColor.init(white: 1, alpha: 0.5), for: .normal)
+        btn.titleLabel?.font = UIFont.systemFont(ofSize: 14)
         btn.addTarget(self, action: #selector(addVideo), for: .touchUpInside)
+        
         return btn
     }()
     
@@ -176,19 +179,24 @@ class INRecorderController: BFBaseViewController {
             view.addSubview(buildTimeLabel)
         }
       
-        view.addSubview(centerView)
         view.addSubview(bottomView)
+
+        view.addSubview(centerView)
         centerView.snp.makeConstraints { make in
-            make.width.equalTo(140)
+            make.width.equalToSuperview()
             make.height.equalTo(209)
             make.center.equalToSuperview()
         }
         
-        centerView.addSubview(addVideoBtn)
-        addVideoBtn.snp.makeConstraints { make in
-            make.top.equalToSuperview().offset(5)
-            make.left.equalToSuperview().offset(5)
-            make.width.height.equalTo(130)
+        centerView.addSubview(titleL)
+        centerView.addSubview(camaraBtn)
+        centerView.addSubview(photoBtn)
+        
+        camaraBtn.snp.makeConstraints { make in
+            make.width.equalTo(130)
+            make.height.equalTo(180)
+            make.centerX.equalToSuperview().offset(-71.5)
+            make.centerY.equalToSuperview()
         }
         
         let l = UILabel()
@@ -202,15 +210,12 @@ class INRecorderController: BFBaseViewController {
         paragraphStyle.lineSpacing = 7
         paragraphStyle.alignment = .center
         attributedString.addAttribute(.paragraphStyle, value: paragraphStyle, range: .init(location: 0, length: l.text?.count ?? 0))
-        
-        l.attributedText = attributedString
-        l.sizeToFit()
-        l.numberOfLines = 2
-        l.snp.makeConstraints { make in
-            make.top.equalTo(addVideoBtn.snp.bottom).offset(19)
+
+        titleL.snp.makeConstraints { make in
+            make.bottom.equalTo(photoBtn.snp.top).offset(-50)
             make.centerX.equalToSuperview()
             make.width.equalTo(200)
-            make.height.equalTo(60)
+            make.height.equalTo(40)
         }
         
         //欢迎界面
@@ -265,6 +270,16 @@ class INRecorderController: BFBaseViewController {
         
     }
     
+    override func viewDidLayoutSubviews() {
+        var btn = camaraBtn
+        btn.imageEdgeInsets = UIEdgeInsets(top: -btn.titleLabel!.height - 2, left: 0, bottom: 0, right: -btn.titleLabel!.width)
+        btn.titleEdgeInsets = UIEdgeInsets(top: btn.imageView!.height + 8, left: -btn.imageView!.width, bottom: 0, right: 0)
+        
+        btn = photoBtn
+        btn.imageEdgeInsets = UIEdgeInsets(top: -btn.titleLabel!.height - 2, left: 0, bottom: 0, right: -btn.titleLabel!.width)
+        btn.titleEdgeInsets = UIEdgeInsets(top: btn.imageView!.height + 8, left: -btn.imageView!.width, bottom: 0, right: 0)
+    }
+    
     @objc func doneAction() {
         welcomeBackView.isHidden = true
         
@@ -297,6 +312,11 @@ class INRecorderController: BFBaseViewController {
         }
     }
     
+    @objc func cameraBtnAction() {
+        let vc = INIntroduceController()
+        navigationController?.pushViewController(vc, animated: true)
+    }
+    
     @objc func protocolClick(sender:UIButton) {
         var link: String?
         if sender.tag == 1 {