Toggle navigation
Toggle navigation
This project
Loading...
Sign in
尹诚
/
Mapbox-iOS-SDK
·
Commits
Go to a project
GitLab
Go to dashboard
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
Thomas Rasch
2012-05-24 16:19:59 +0200
Commit
4ef33ad734dc40d29c0b98b23954ea9f2da5f5f1
1 parent
90076f00
o Check if the image and cache key parameters are non-nil before adding the image to the caches
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
MapView/Map/RMTileCache.m
MapView/Map/RMTileCache.m
View file @
4ef33ad
...
...
@@ -143,6 +143,9 @@
-
(
void
)
addImage
:
(
UIImage
*
)
image
forTile
:
(
RMTile
)
tile
withCacheKey
:
(
NSString
*
)
aCacheKey
{
if
(
!
image
||
!
aCacheKey
)
return
;
[
memoryCache
addImage
:
image
forTile
:
tile
withCacheKey
:
aCacheKey
];
@synchronized
(
caches
)
...
...
Please
register
or
login
to post a comment