Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
SuperCleaner
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
SuperCleaner
Commits
14c7e0c6
Commit
14c7e0c6
authored
Aug 06, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
735eb6fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
19 deletions
+5
-19
StatisticsViewController.m
superCleaner/Other/AAChartKitLib/StatisticsViewController.m
+5
-19
No files found.
superCleaner/Other/AAChartKitLib/StatisticsViewController.m
View file @
14c7e0c6
...
...
@@ -56,30 +56,15 @@
-
(
void
)
loadPhotoData
:
(
BOOL
)
isFirstLoad
{
[
MBProgressHUD
showLoading
:
@"正在查询,请稍后..."
toView
:
self
.
view
];
if
(
self
.
photoMgr
.
currentIndex
<=
0
)
{
self
.
photoMgr
.
pauseAction
=
tru
e
;
self
.
photoMgr
.
currentIndex
=
0
;
self
.
photoMgr
.
pauseAction
=
fals
e
;
[
self
.
photoMgr
loadPhotoWithProcess
:
^
(
NSInteger
current
,
NSInteger
total
)
{
total
=
self
.
total
;
}
completionHandler
:
^
(
BOOL
success
,
NSError
*
error
)
{
[
MBProgressHUD
hideHUDForView
:
self
.
view
];
[
self
loadLocationAssets
];
}];
}
else
if
(
self
.
photoMgr
.
currentIndex
>=
self
.
photoMgr
.
fetchResult
.
count
-
3
)
{
[
MBProgressHUD
hideHUDForView
:
self
.
view
];
[
self
loadLocationAssets
];
return
;
}
else
{
self
.
photoMgr
.
pauseAction
=
true
;
[
self
.
photoMgr
loadPhotoWithProcess
:
^
(
NSInteger
current
,
NSInteger
total
)
{
total
=
self
.
total
;
}
completionHandler
:
^
(
BOOL
success
,
NSError
*
error
)
{
[
MBProgressHUD
hideHUDForView
:
self
.
view
];
[
self
loadLocationAssets
];
[
self
loadLocationAssets
];
}];
}
}
-
(
void
)
loadLocationAssets
{
...
...
@@ -88,6 +73,7 @@
[
self
.
photoMgr
loadLocationPhotoWithProcess
:
^
(
NSInteger
current
,
NSInteger
total
)
{
NSLog
(
@"loadLocationPhotoWithProcess %ld"
,
(
long
)
current
);
self
.
total
=
total
;
}
completionHandler
:
^
(
BOOL
success
,
NSError
*
error
)
{
[
MBProgressHUD
hideHUDForView
:
self
.
view
];
...
...
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