Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
824b478e
Commit
824b478e
authored
Mar 22, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 相册权限提示
parent
59c46a9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
YHCertificateUploadSheetView.swift
...MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
+8
-2
YHImagePickerView.swift
...ainApplicantInformation(主申请人信息)/V/YHImagePickerView.swift
+8
-2
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
View file @
824b478e
...
...
@@ -383,7 +383,10 @@ extension YHCertificateUploadSheetView: (UIImagePickerControllerDelegate & UINav
}
func
takePhoto
()
{
guard
getPhotoLibraryAuthorization
()
else
{
return
}
guard
getPhotoLibraryAuthorization
()
else
{
YHHUD
.
flash
(
message
:
"请打开相册权限"
)
return
}
if
UIImagePickerController
.
isSourceTypeAvailable
(
.
camera
){
//创建图片控制器
let
imagePicker
=
UIImagePickerController
()
...
...
@@ -401,7 +404,10 @@ extension YHCertificateUploadSheetView: (UIImagePickerControllerDelegate & UINav
}
func
selectPhoto
()
{
guard
getPhotoLibraryAuthorization
()
else
{
return
}
guard
getPhotoLibraryAuthorization
()
else
{
YHHUD
.
flash
(
message
:
"请打开相册权限"
)
return
}
if
UIImagePickerController
.
isSourceTypeAvailable
(
.
photoLibrary
){
let
imagePicker
=
UIImagePickerController
()
imagePicker
.
delegate
=
self
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/MainApplicantInformation(主申请人信息)/V/YHImagePickerView.swift
View file @
824b478e
...
...
@@ -165,7 +165,10 @@ class YHImagePickerView: UIView {
}
@objc
func
takePhoto
()
{
guard
getPhotoLibraryAuthorization
()
else
{
return
}
guard
getPhotoLibraryAuthorization
()
else
{
YHHUD
.
flash
(
message
:
"请打开相册权限"
)
return
}
if
UIImagePickerController
.
isSourceTypeAvailable
(
.
camera
){
//创建图片控制器
let
imagePicker
=
UIImagePickerController
()
...
...
@@ -183,7 +186,10 @@ class YHImagePickerView: UIView {
}
@objc
func
selectPhoto
()
{
guard
getPhotoLibraryAuthorization
()
else
{
return
}
guard
getPhotoLibraryAuthorization
()
else
{
YHHUD
.
flash
(
message
:
"请打开相册权限"
)
return
}
if
UIImagePickerController
.
isSourceTypeAvailable
(
.
photoLibrary
){
let
imagePicker
=
UIImagePickerController
()
imagePicker
.
delegate
=
self
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment