|
@@ -32,43 +32,48 @@ class PublishNewAuthorizationView: BaseView {
|
|
|
titleLabel.snp.makeConstraints { (make) in
|
|
|
make.top.equalTo(backButton.snp.bottom).offset(164)
|
|
|
make.centerX.equalToSuperview()
|
|
|
+
|
|
|
}
|
|
|
cameraButton.snp.makeConstraints { (make) in
|
|
|
make.top.equalTo(titleLabel.snp.bottom).offset(40)
|
|
|
make.width.equalTo(200)
|
|
|
make.centerX.equalToSuperview()
|
|
|
+ make.height.equalTo(40)
|
|
|
}
|
|
|
microphoneButton.snp.makeConstraints { (make) in
|
|
|
make.top.equalTo(cameraButton.snp.bottom).offset(20)
|
|
|
make.width.equalTo(200)
|
|
|
make.centerX.equalToSuperview()
|
|
|
+ make.height.equalTo(40)
|
|
|
}
|
|
|
albumButton.snp.makeConstraints { (make) in
|
|
|
- make.top.equalTo(titleLabel.snp.bottom).offset(20)
|
|
|
+ make.top.equalTo(microphoneButton.snp.bottom).offset(20)
|
|
|
make.width.equalTo(200)
|
|
|
make.centerX.equalToSuperview()
|
|
|
+ make.height.equalTo(40)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
override func setupData() {
|
|
|
|
|
|
let vc = getCurrentVC()
|
|
|
+ vc?.statusBarStyle = .lightContent
|
|
|
//返回
|
|
|
backButton.rx.tap.subscribe(onNext: { [weak vc] _ in
|
|
|
vc?.dismiss(animated: true, completion: nil)
|
|
|
}).disposed(by: disposeBag)
|
|
|
-// //跳转到相机权限
|
|
|
-// cameraButton.rx.tap.subscribe(onNext: { [weak vc] _ in
|
|
|
-//
|
|
|
-// }).disposed(by: disposeBag)
|
|
|
-// // 跳转到麦克风权限
|
|
|
-// microphoneButton.rx.tap.subscribe(onNext: { [weak vc] _ in
|
|
|
-//
|
|
|
-// }).disposed(by: disposeBag)
|
|
|
-// // 跳转到相册权限
|
|
|
-// albumButton.rx.tap.subscribe(onNext: { [weak vc] _ in
|
|
|
-//
|
|
|
-// }).disposed(by: disposeBag)
|
|
|
+ //跳转到相机权限
|
|
|
+ cameraButton.rx.tap.subscribe(onNext: { [weak vc] _ in
|
|
|
+
|
|
|
+ }).disposed(by: disposeBag)
|
|
|
+ // 跳转到麦克风权限
|
|
|
+ microphoneButton.rx.tap.subscribe(onNext: { [weak vc] _ in
|
|
|
+
|
|
|
+ }).disposed(by: disposeBag)
|
|
|
+ // 跳转到相册权限
|
|
|
+ albumButton.rx.tap.subscribe(onNext: { [weak vc] _ in
|
|
|
+
|
|
|
+ }).disposed(by: disposeBag)
|
|
|
}
|
|
|
|
|
|
|
|
@@ -95,6 +100,8 @@ class PublishNewAuthorizationView: BaseView {
|
|
|
cameraButton.setTitle("启用相机访问权限", for: UIControl.State.normal)
|
|
|
cameraButton.setTitleColor(kThemeColor, for: UIControl.State.normal)
|
|
|
cameraButton.titleLabel?.font = kRegularFont15
|
|
|
+ cameraButton.layer.borderColor = kThemeColor.cgColor
|
|
|
+ cameraButton.layer.borderWidth = 0.5
|
|
|
cameraButton.cornerRadius = 20
|
|
|
cameraButton.masksToBounds = true
|
|
|
return cameraButton
|
|
@@ -106,6 +113,8 @@ class PublishNewAuthorizationView: BaseView {
|
|
|
microphoneButton.setTitle("启用麦克风访问权限", for: UIControl.State.normal)
|
|
|
microphoneButton.setTitleColor(kThemeColor, for: UIControl.State.normal)
|
|
|
microphoneButton.titleLabel?.font = kRegularFont15
|
|
|
+ microphoneButton.layer.borderColor = kThemeColor.cgColor
|
|
|
+ microphoneButton.layer.borderWidth = 0.5
|
|
|
microphoneButton.cornerRadius = 20
|
|
|
microphoneButton.masksToBounds = true
|
|
|
return microphoneButton
|
|
@@ -117,6 +126,8 @@ class PublishNewAuthorizationView: BaseView {
|
|
|
albumButton.setTitle("启用相册访问权限", for: UIControl.State.normal)
|
|
|
albumButton.setTitleColor(kThemeColor, for: UIControl.State.normal)
|
|
|
albumButton.titleLabel?.font = kRegularFont15
|
|
|
+ albumButton.layer.borderColor = kThemeColor.cgColor
|
|
|
+ albumButton.layer.borderWidth = 0.5
|
|
|
albumButton.cornerRadius = 20
|
|
|
albumButton.masksToBounds = true
|
|
|
return albumButton
|