Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
yh_sdwebimage
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Olivier Poitrey
2010-06-11 06:17:54 +0200
Commit
1cae0c4021c1da69d9ba693abfe9f974306cab25
1 parent
e0e36965
Set image to nil when trying to load nil URL
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
UIImageView+WebCache.m
UIImageView+WebCache.m
View file @
1cae0c4
...
...
@@ -23,6 +23,12 @@
// Remove in progress downloader from queue
[
manager
cancelForDelegate
:
self
];
if
(
!
url
)
{
self
.
image
=
nil
;
return
;
}
UIImage
*
cachedImage
=
[
manager
imageWithURL
:
url
];
if
(
cachedImage
)
...
...
Please
register
or
login
to post a comment