Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangyongji
/
MRFramework
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
946f0bc0
authored
Dec 04, 2019
by
Sarkizz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正逻辑
parent
c50a53e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
MRFramework/MRFramework/Extensions/UIKit/UIImage+file.swift
+4
-0
No files found.
MRFramework/MRFramework/Extensions/UIKit/UIImage+file.swift
View file @
946f0bc0
...
...
@@ -87,6 +87,10 @@ extension UIImage {
/// - Parameter complate: 回调
public
func
saveToAlbum
(
_
complate
:
UIImageSaveToAlbumCompleteBlock
?)
{
checkAuthorization
({
status
in
guard
status
==
.
authorized
else
{
complate
?(
self
,
nil
,
self
.
error
(
code
:
-
3
,
msg
:
"无法访问图片资源"
))
return
}
var
localId
:
String
?
PHPhotoLibrary
.
shared
()
.
performChanges
({
let
rs
=
PHAssetChangeRequest
.
creationRequestForAsset
(
from
:
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