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
129a9488
authored
Sep 12, 2019
by
Sarkizz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正图片多选逻辑
parent
56048b7e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
MRFramework/MRFramework/UIControls/Album/MRAlbumListViewController.swift
+2
-2
MRFramework/MRFramework/UIControls/PhotoPicker/SAMutableSelectionAlbum.swift
+1
-6
No files found.
MRFramework/MRFramework/UIControls/Album/MRAlbumListViewController.swift
View file @
129a9488
...
...
@@ -167,7 +167,7 @@ extension MRAlbumListViewController {
size
:
CGSize
?
=
nil
,
inQueue
:
DispatchQueue
=
DispatchQueue
.
global
(),
progress
:
((
_
progress
:
Float
)
->
Void
)?
=
nil
,
completion
:
@escaping
(
_
images
:
[
UIImage
]
?,
_
failedCount
:
Int
,
_
error
:
String
?
)
->
Void
)
{
completion
:
@escaping
(
_
images
:
[
UIImage
]
,
_
failedCount
:
Int
)
->
Void
)
{
var
count
=
0
var
failedCount
=
0
...
...
@@ -190,7 +190,7 @@ extension MRAlbumListViewController {
progress
?(
Float
(
count
/
assests
.
count
))
if
count
<=
0
{
completion
(
images
,
failedCount
,
nil
)
completion
(
images
,
failedCount
)
}
}
}
...
...
MRFramework/MRFramework/UIControls/PhotoPicker/SAMutableSelectionAlbum.swift
View file @
129a9488
...
...
@@ -20,14 +20,9 @@ public class SAMutableSelectionAlbum: MRAlbumListViewController {
public
override
func
confirm
()
{
ToastView
.
loading
()
requestImages
(
with
:
selectedAssests
,
size
:
maxImageSize
)
{
(
images
,
count
,
error
)
in
requestImages
(
with
:
selectedAssests
,
size
:
maxImageSize
)
{
(
images
,
count
)
in
ToastView
.
hide
(
animate
:
false
)
if
let
images
=
images
{
self
.
didFinish
?(
self
,
images
,
count
)
}
else
{
let
error
=
error
??
"获取图片失败"
ToastView
.
show
(
error
)
}
}
}
...
...
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