Skip to content

Base/head Fork; eddydas-9gag.open.source/SDWebimage #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 229 commits into
base: 2.0-compat
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
2227266
First beta of SDWebImage 3.0
Nov 4, 2012
535203d
Add who use it section
Nov 4, 2012
f879829
Remove outdated motivation section
Nov 4, 2012
64a745f
Add "How is SDWebImage better than X?" wiki link
Nov 4, 2012
4f2b5bf
Add Licenses section
Nov 4, 2012
9a28327
Fix typo in license URL
Nov 5, 2012
e91cbcf
Fix wrong cache policy used (fix #211)
Nov 5, 2012
56a0eea
Setup NSURLRequest
Nov 4, 2012
efe65bf
Fix source file headers
Nov 4, 2012
df89ee4
Update podspec
Nov 4, 2012
8a55d97
Prevent caching of responses by NSURLCache (fix #211)
Nov 5, 2012
d85d583
Fix fucked-up merge
Nov 5, 2012
f7d0f1d
Fix example app
Nov 5, 2012
149afed
Add progress block support to UIImageView category
Nov 5, 2012
78a4df1
Fix aggregation tracking urls not cleaned in case of cancellation
Nov 5, 2012
73df9d7
Track leaks
Nov 5, 2012
a8a9b12
Do not use dispatch_io_write as it generate random crashes
Nov 6, 2012
13210a6
Use global low prio queue instead of a dedicated queue for caching I/Os
Nov 6, 2012
570965f
Use dispatch_barrier to handle NSMutableDictionary thread unsafety in…
Nov 6, 2012
ed69046
Ensure we're not decoding the image in the main thread
Nov 6, 2012
bf1b946
Fix double call to NSURLConnection start + wrong condition for low pr…
Nov 6, 2012
b5bb74b
Ensure every data manipulation performed in NSURLConnection delegates…
Nov 6, 2012
326890b
Fix disk image cache read not setting memory cache + ensure decodedIm…
Nov 6, 2012
651d8ff
Serialize all background operations
Nov 6, 2012
cceb563
Fix crash under iOS 6 when dispatch_release is called (see #213)
Nov 6, 2012
541f3a1
Fix cancel not cancelling connection
Nov 6, 2012
1f0a8f4
Use the correct setter sementics for dispatch (fix 213)
Nov 6, 2012
2904559
Fix progressive mode
Nov 6, 2012
e5b0d22
Do not break category API (cf previous commit)
Nov 6, 2012
b29bb2e
Do not call completed block on categories for intermediate progressiv…
Nov 6, 2012
95be2aa
Inline conditions are baaad
Nov 6, 2012
e343bdf
Add details on `finished` parameter
Nov 6, 2012
2eee009
Add some doc
Nov 7, 2012
3109110
Fix lazy copy/pasted typo
Nov 7, 2012
8f50bf6
Set max concurrent to 2 by default
Nov 8, 2012
7b94716
Copy all stored blocks
Nov 9, 2012
bd72fe1
Fix documentation directive
SRandazzo Nov 9, 2012
152c75f
Merge pull request #219 from SRandazzo/patch-1
Nov 9, 2012
0c1dd3c
Fix CGBitmapContextCreate errors (fix #204)
Nov 11, 2012
0920e7a
Add activity indicator demo
Nov 13, 2012
022aa21
Fix a race condition (fix #220)
Nov 13, 2012
d30c2ae
Improved background image decoding performance.
matej Nov 16, 2012
5c94f17
Disk cache now uses the raw image data returned from the server.
matej Nov 16, 2012
2e8c025
Passing the exact cache type in the completion block.
matej Nov 16, 2012
ab185ea
Implemented progress callbacks and related fixes.
matej Nov 19, 2012
9a3aff4
Always making callbacks using the main thread.
matej Nov 19, 2012
331053d
Calling completion callbacks in the main thread.
matej Nov 19, 2012
713a833
Resolved some downloader threading issues.
matej Nov 19, 2012
9546c84
Making sure cache queries always callback in the main thread.
matej Nov 19, 2012
6e99059
Fix demo app regarding last changes
Nov 19, 2012
a7af2a1
Try to fix decode image error message
Nov 19, 2012
1ec36c7
Do not init an activity indictor if image isn't downloading in demo a…
Nov 19, 2012
44c6224
Fix bug in SDWebImagePrefetcher where startPrefetchingAtIndex would n…
arbarlow Nov 20, 2012
10c4457
Fix SDWebImagePrefetcher maxConcurrentDownloads property
Nov 20, 2012
82faab8
Do not capture self in operations in categories
Nov 27, 2012
d487bcc
Try to fix a random crash on dealloc
Nov 29, 2012
4284b57
Remove no longer necessary cleanMemory on app going to background as …
Nov 29, 2012
ddd03f7
Add some sanity check on the URL parameter
Nov 29, 2012
0691f7c
Remove podspect tag
Dec 6, 2012
12ab710
Add 2.0-compat branch info to README
Dec 6, 2012
43e94e7
Fix typo
Dec 6, 2012
21ff7bd
Do not use GCD barrier for reading
Dec 10, 2012
616d824
Return an error if the downloaded image has no pixels (fix #241)
Dec 10, 2012
84fe4a6
Fix indentation tab/space
Dec 10, 2012
e3d8bc8
Fix podspec typo (fix #240)
Dec 10, 2012
d3b5fd2
Fix ARC compilation warning breaking some non-ARC projects (fix #229)
Dec 11, 2012
a94b3ec
Fix typo (fix #246)
Dec 11, 2012
37f71de
Using the source image's the color space for image decoding (fix #237)
matej Dec 13, 2012
b4fb940
Send out progress callbacks sooner.
matej Dec 10, 2012
8575991
Changed the expected size to -1 in the initial progress callback.
matej Dec 13, 2012
7ba7702
Using spaces instead of tabs for indentation.
matej Dec 13, 2012
7cd4d8e
Merge pull request #249 from matej/early-progress-callback
Dec 13, 2012
f800a52
Fixed bug where decodedImageWithImage: ignored image scale and orient…
reidmain Dec 15, 2012
5f7d288
Merge pull request #252 from reidmain/master
Dec 15, 2012
043eb14
Fix an LLVM warning (fix #254)
Dec 19, 2012
c876caf
Fix Xcode 4.6 warnings
Dec 19, 2012
e8b1532
isRunning method added at SDWebImageManager
kawanet Dec 25, 2012
cfb65f2
Change SDWebImageManager to use shared image cache
aburgel Jan 4, 2013
75cf6a0
Merge pull request #264 from aburgel/use_shared_cache
Jan 4, 2013
b398208
Do not mark URLs a fail when error is due to missing network connection
Jan 11, 2013
e31b157
Don't dispatch cancelAll calls.
matej Dec 19, 2012
a755f64
Merge pull request #268 from matej/prefetcher-fix
Jan 11, 2013
555a320
Merge pull request #260 from kawanet/master
Jan 16, 2013
1e53e91
Add imageFromMemoryCacheForKey: method to synchronously query the mem…
Jan 16, 2013
bc29d0a
Fix podspec (fix #253)
Jan 16, 2013
b59b42e
Fixed bug where NSInvalidArgumentException was thrown if an image wit…
reidmain Jan 16, 2013
599636f
Removed creation of NSError when a nil URL is downloaded.
reidmain Jan 17, 2013
815d1c5
Merge pull request #274 from reidmain/master
Jan 17, 2013
12196f4
Fixed CGBitmapContextCreate warnings for invalid alpha properties
Reflejo Jan 17, 2013
73884be
Invalid cost calculation when saving image to memory cache
Reflejo Jan 17, 2013
788ff67
Merge pull request #278 from Reflejo/invalidcost
Jan 17, 2013
0ee1032
Merge pull request #277 from Reflejo/upstream
Jan 17, 2013
85dacac
Bump version to 3.1
Jan 21, 2013
3016754
Share framework target
Jan 21, 2013
e7c02bb
Migrate the no longer github supported download page to a wiki page
Jan 21, 2013
42c7455
Check SDWebImageCacheMemoryOnly for disk caching
NachoSoto Jan 29, 2013
87568ce
Merge pull request #287 from NachoSoto/disk-cache
Jan 29, 2013
63178bd
Revert "Fixed CGBitmapContextCreate warnings for invalid alpha proper…
Feb 7, 2013
de485a8
Fix downloader queue using assign instead of strong under iOS 6
Feb 12, 2013
17cc72d
Add synchronous disk-cache loading method.
inamiy Feb 13, 2013
a8a3983
Merge pull request #297 from inamiy/disk-cache
Feb 13, 2013
de19c24
[BUG] Fix invalid alpha on JPEG files
Reflejo Feb 14, 2013
b27d571
Synchronize access to SDWebImageManager's mutable structures (fix #301)
Feb 16, 2013
5f53560
Merge pull request #299 from Reflejo/master
Feb 16, 2013
6f198ab
Add ability to set custom downloader HTTP headers (fix #171)
Feb 16, 2013
ebd63a8
Add `SDWebImageManager` delegate allowing fine control of manager's c…
Feb 16, 2013
350c0be
Add completion block support to `SDWebImagePrefetcher` (fix #127)
Feb 17, 2013
f024890
Add (kinda) LIFO queue mode support for image downloading (fix #294)
Feb 17, 2013
15c5785
correct cachePolicy constants.
n-miyo Feb 19, 2013
ae57215
Merge pull request #302 from n-miyo/fix_cache_policy
Feb 20, 2013
fbf14d2
Prefetching file properties in the disk cleaning enumerator
nebillo Feb 21, 2013
05dd3f4
Merge pull request #307 from nebillo/master
Feb 21, 2013
d57b92c
Detect parent operation cancellation in download operation completion…
Feb 26, 2013
95337c4
Merge pull request #311 from sebreh/master
Feb 26, 2013
bbad1bc
New option SDWebImageRefreshCached
nioq Mar 11, 2013
5cd7c0d
Fix condition logic issue in #326
Mar 12, 2013
f097ef7
Fix NSURLResponse not cached when `SDWebImageDownloaderEnableNSURLCac…
Mar 12, 2013
9b574e5
Force progressive download off when force refresh is on #326
Mar 12, 2013
a3e3c61
Prevent double disk caching when `SDWebImageRefreshCached` option is …
Mar 12, 2013
eed78e3
Ensure image isn't decoded twice if not necessary when SDWebImageRefr…
Mar 12, 2013
9a29af4
Fix typo
Mar 12, 2013
8cfd26f
Disable duplicate disk cache prevention with SDWebImageRefreshCached …
Mar 12, 2013
55096d8
Fix SDWebImageManager transformDownloadedImage
bm-i Mar 12, 2013
fb28dfe
Merge pull request #327 from bm-i/patch-1
Mar 12, 2013
b1f1c08
Bump version 3.2
Mar 12, 2013
f747804
Add some words about SDWebImageRefreshCached in README
Mar 12, 2013
f04b4a0
Fix OS_OBJECT_USE_OBJC handling (fix #329)
Mar 13, 2013
474b0d9
Added SDWebImageCompact.m to Compile sources of the SDWebImage+MKAnno…
Mar 20, 2013
7779896
Updating comments to be more accurate and fix typos
joshkalpin Mar 22, 2013
4c51485
Merge pull request #344 from Kapin/master
Mar 22, 2013
c50be70
Inline the SDScaledImageForPath function so it doesn't polute the sta…
Mar 25, 2013
6284e40
Fixed typo.
Vyazovoy Mar 27, 2013
ee9af64
SDWebImageDownloaderQueueMode type renamed. Fixed typo. Added descrip…
Vyazovoy Mar 27, 2013
c776527
Potential strong cycle fixed.
Vyazovoy Mar 27, 2013
c3968b3
Merge branch 'develop'
Vyazovoy Mar 27, 2013
eda9878
Merge pull request #351 from Vyazovoy/master
Mar 27, 2013
1e37b71
-getSize now returns an `unsigned long long`.
jparise Mar 27, 2013
1655803
Merge pull request #352 from jparise/getSize-return-type
Mar 27, 2013
32f0111
Support a maximum disk cache size in -cleanDisk.
jparise Mar 28, 2013
7d12c3e
Remove double import for SDWebImageDecoder.h
u16suzu Mar 29, 2013
7d6e17c
Merge pull request #355 from u16suzu/fix_double_import
Mar 29, 2013
9f4e691
Added auto release pool to keep memory foot print down when retrievin…
Apr 4, 2013
0b52915
Fix completionBlock setter semantics
0xced Apr 17, 2013
308570a
Merge pull request #362 from 0xced/patch-1
Apr 17, 2013
1162585
Merge pull request #353 from jparise/max-cache-size
Apr 26, 2013
b85556f
This is an attempt to avoid the crashes in #341.
Apr 26, 2013
d53a47e
Remove async calls from SDWebImageDownloader. The operation is alrea…
Apr 27, 2013
4965c7d
Merge pull request #373 from cfis/download_cleanup
Apr 27, 2013
ae1476b
Merge pull request #340 from odanu/master
Apr 27, 2013
55ebe66
Fix and make SDScaledImageForPath extensible
bm-i Apr 23, 2013
9eff469
Make SDWebImageManager cache creation extensible
bm-i Apr 23, 2013
17d04b7
Merge pull request #366 from bm-i/master
Apr 27, 2013
3f98095
support GIFs
Apr 28, 2013
5bf37d5
cache the GIF data instead of the jpeg representation
Apr 28, 2013
2a370b0
updated formatting for project
Apr 28, 2013
d789fd9
change var name
Apr 28, 2013
5db0d00
Merge pull request #375 from lavoy/master
Apr 28, 2013
ad4babd
Scale GIF images
Apr 28, 2013
f58c2eb
moved scaling up the process
Apr 29, 2013
952eeec
Include NS* files in source files of Podspec
Apr 29, 2013
eaf6cd2
Merge pull request #380 from stylight/master
Apr 29, 2013
65807f2
Merge pull request #379 from lavoy/master
Apr 29, 2013
4137bce
Add prefix to GIF support category's methods
Apr 29, 2013
e3b15e3
fix alpha pngs turning into white pngs when caching when you have a m…
kylefleming May 1, 2013
990df9f
Update README.md
May 6, 2013
0426f07
Images can be downloaded in multiple threads. Therefore the call to …
May 7, 2013
899d67b
Merge pull request #388 from cfis/synchronize_failed_urls
May 8, 2013
827fcac
call progress block regardless of completion block, options
May 8, 2013
b8ab9d7
Merge pull request #389 from lavoy/master
May 9, 2013
ff2b30e
Merge pull request #383 from garthex/white_png_issue
May 14, 2013
124a87b
Fix some document error.
May 27, 2013
1f31915
Fix a mismatch description.
May 27, 2013
5b6e84a
Adjust indenting.
May 27, 2013
51bdfdf
Format code in document.
May 27, 2013
e8c5ed1
Merge pull request #400 from BB9z/fix/document-parameter
May 27, 2013
1b7305c
Update SDWebImageCompat.h
docallag May 31, 2013
4ab6d18
Merge pull request #401 from docallag/master
May 31, 2013
d04fd47
Fix typo in download page URL
Jun 1, 2013
7d9c93f
#406 - Fixed a problem where hitting a failed URL more than once woul…
Jun 4, 2013
d38e13c
Merge pull request #408 from dlbuckley/issue-406-Failed-URL-Problem
Jun 4, 2013
447f1cc
Custom image cache search paths
SRandazzo May 14, 2013
1dbb79f
Refactor GIF support
Jun 7, 2013
04fa4c9
Add WebP format support (fix #410)
Jun 7, 2013
c1e686b
Added libwebp dependency. Also fix a typo in description.
Jun 8, 2013
90d1202
Merge pull request #413 from stylight/master
Jun 8, 2013
5ecb8d5
Do not enable webp when not explicitly activated by a macro (fix #415)
Jun 10, 2013
63805ef
// Fix for issue #416 Undefined symbols for architecture armv7 since …
dalexsoto Jun 11, 2013
10a0f21
Fix for issue #416 Undefined symbols for architecture armv7 since Web…
dalexsoto Jun 11, 2013
9a1f072
Merge pull request #418 from dalexsoto/master
Jun 12, 2013
c666424
Ensure we always set the UIKit image properties from the main thread …
Jun 12, 2013
2f98db9
Change version to 3.3
Jun 14, 2013
4eaf0d7
Import WebP category only when the macro is activated.
Jun 16, 2013
0b330b5
Merge pull request #422 from BB9z/WebP_switch
Jun 16, 2013
d767791
Minor typo fix.
Jun 17, 2013
48ce95f
Merge pull request #423 from BB9z/superfluous-semicolon
Jun 17, 2013
18334bc
Add -calculateSizeWithCompletionBlock:.
jparise Jun 26, 2013
8a95ce7
Merge pull request #434 from jparise/calculate-size
Jun 26, 2013
4a4e496
Remove an unused call to -callbacksForURL:.
jparise Jun 27, 2013
834ffad
Merge pull request #436 from jparise/unused-callbacksForURL
Jun 27, 2013
95277ba
Break a retain cycle
hsoi Jul 5, 2013
4246846
Merge pull request #444 from hsoi/scrolling-lockup
Jul 5, 2013
b54f530
Update README.md
Jul 7, 2013
b3895a5
Merge pull request #446 from tissak/master
Jul 7, 2013
282e817
Use an empty string to if str was NULL.
masarusanjp Jul 11, 2013
6faa7bf
added multiple download of images for animationImages property of UII…
gringoireDM Jul 30, 2013
fb196ea
Added background clean disk to UIApplicationDidEnterBackgroundNotific…
shifu Jul 29, 2013
8b37b16
Merge branch 'master' of git://github.com/gringoireDM/SDWebImage into…
Jul 31, 2013
f07a34d
Fix downloadImageWithURL:options:progress:completed returning nil (fi…
Aug 8, 2013
3a6d948
Call handlers on the main thread synchronously to enhance responsivit…
Aug 8, 2013
1e63f33
Always call the completedBlock from main thread (fix #397)
Aug 8, 2013
5dd219f
Try to fix the thread block (#399)
Aug 8, 2013
5f12cab
Fix unreleased operation (fix #466, fix #444)
Aug 9, 2013
4540745
Fix the dead thread bug on iOS 5 (fix #466)
Aug 9, 2013
ffd9e02
Update README.md
Aug 11, 2013
fa987a1
Canceling the SDWebImageOperation will also cancel the expensive disk…
pennig Aug 12, 2013
f356b86
The callbacksForURL: method of SDWebImageDownloader now returns a cop…
Aug 13, 2013
9f1ac24
Merge pull request #471 from PinchProject/hotfix/fast_enumeration_fix
Aug 13, 2013
67a28d9
Change version to 3.4
Aug 13, 2013
bbf0b5c
Use 'default_subspec' and separate the WebP support to its sub-spec
ikesyo Aug 14, 2013
6f3debd
Fix sub-spec dependency
ikesyo Aug 14, 2013
a0df1a0
Merge pull request #472 from ikesyo/webp-subspec
Aug 14, 2013
8c295cf
Update webp to upstream head
Aug 20, 2013
76d2fc8
Update project to comply with Xcode 5
Aug 20, 2013
16e1a1f
Fix long running requests
longlongjump Aug 22, 2013
7e2763a
Merge pull request #479 from longlongjump/master
Aug 23, 2013
22cd4e4
Fix xcode project settings
Aug 27, 2013
434bf30
Fixed multiple instantiation of SDWebImageDownloader
Aug 28, 2013
3d8217e
issue solved: https://github.com/rs/SDWebImage/pull/741
Mar 5, 2015
6962f64
important fix of gitmodule path
Jul 24, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "Vendors/libwebp"]
path = Vendors/libwebp
url=https://chromium.googlesource.com/webm/libwebp
Binary file not shown.
Binary file added Examples/Default-568h@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 37 additions & 44 deletions Examples/SDWebImage Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
3E75A9861742DBE700DA412D /* CustomPathImages in Resources */ = {isa = PBXBuildFile; fileRef = 3E75A9851742DBE700DA412D /* CustomPathImages */; };
531041C1157EAC8F00BBABC3 /* ImageIO.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 537612E6155ABA44005750A4 /* ImageIO.framework */; };
5376129A155AB74D005750A4 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53761299155AB74D005750A4 /* UIKit.framework */; };
5376129C155AB74D005750A4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5376129B155AB74D005750A4 /* Foundation.framework */; };
Expand All @@ -17,43 +18,38 @@
537612B0155AB74D005750A4 /* DetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 537612AF155AB74D005750A4 /* DetailViewController.m */; };
537612B3155AB74D005750A4 /* MasterViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 537612B1155AB74D005750A4 /* MasterViewController.xib */; };
537612B6155AB74D005750A4 /* DetailViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 537612B4155AB74D005750A4 /* DetailViewController.xib */; };
53980816164349C6003B5191 /* libSDWebImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5398080416434977003B5191 /* libSDWebImage.a */; };
53A2B50D155B155A00B12423 /* placeholder.png in Resources */ = {isa = PBXBuildFile; fileRef = 53A2B50B155B155A00B12423 /* placeholder.png */; };
53A2B50E155B155A00B12423 /* placeholder@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 53A2B50C155B155A00B12423 /* placeholder@2x.png */; };
53EEC18916484553007601E1 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 53EEC18816484553007601E1 /* Default-568h@2x.png */; };
53EEC1B2164845E9007601E1 /* libSDWebImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 53EEC1AD164845D9007601E1 /* libSDWebImage.a */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
5398080116434977003B5191 /* PBXContainerItemProxy */ = {
53EEC1AC164845D9007601E1 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 539807FA16434977003B5191 /* SDWebImage.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 53922D6F148C55820056699D;
remoteInfo = SDWebImage;
};
5398080316434977003B5191 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 539807FA16434977003B5191 /* SDWebImage.xcodeproj */;
containerPortal = 53EEC1A3164845D8007601E1 /* SDWebImage.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 53761325155AD0D5005750A4;
remoteInfo = "SDWebImage ARC";
remoteInfo = SDWebImage;
};
5398080516434977003B5191 /* PBXContainerItemProxy */ = {
53EEC1AE164845D9007601E1 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 539807FA16434977003B5191 /* SDWebImage.xcodeproj */;
containerPortal = 53EEC1A3164845D8007601E1 /* SDWebImage.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 531041E0157EAFA400BBABC3;
remoteInfo = "SDWebImage ARC+MKAnnotation";
remoteInfo = "SDWebImage+MKAnnotation";
};
53980814164349BD003B5191 /* PBXContainerItemProxy */ = {
53EEC1B0164845E3007601E1 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 539807FA16434977003B5191 /* SDWebImage.xcodeproj */;
containerPortal = 53EEC1A3164845D8007601E1 /* SDWebImage.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = 53761307155AD0D5005750A4;
remoteInfo = "SDWebImage ARC";
remoteInfo = SDWebImage;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
3E75A9851742DBE700DA412D /* CustomPathImages */ = {isa = PBXFileReference; lastKnownFileType = folder; path = CustomPathImages; sourceTree = SOURCE_ROOT; };
53761295155AB74D005750A4 /* SDWebImage Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SDWebImage Demo.app"; sourceTree = BUILT_PRODUCTS_DIR; };
53761299155AB74D005750A4 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
5376129B155AB74D005750A4 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
Expand All @@ -71,17 +67,18 @@
537612B5155AB74D005750A4 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/DetailViewController.xib; sourceTree = "<group>"; };
537612E3155ABA3C005750A4 /* MapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapKit.framework; path = System/Library/Frameworks/MapKit.framework; sourceTree = SDKROOT; };
537612E6155ABA44005750A4 /* ImageIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ImageIO.framework; path = System/Library/Frameworks/ImageIO.framework; sourceTree = SDKROOT; };
539807FA16434977003B5191 /* SDWebImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SDWebImage.xcodeproj; path = ../SDWebImage.xcodeproj; sourceTree = "<group>"; };
53A2B50B155B155A00B12423 /* placeholder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = placeholder.png; sourceTree = "<group>"; };
53A2B50C155B155A00B12423 /* placeholder@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "placeholder@2x.png"; sourceTree = "<group>"; };
53EEC18816484553007601E1 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-568h@2x.png"; path = "../Default-568h@2x.png"; sourceTree = "<group>"; };
53EEC1A3164845D8007601E1 /* SDWebImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SDWebImage.xcodeproj; path = ../SDWebImage.xcodeproj; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
53761292155AB74D005750A4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
53980816164349C6003B5191 /* libSDWebImage.a in Frameworks */,
53EEC1B2164845E9007601E1 /* libSDWebImage.a in Frameworks */,
531041C1157EAC8F00BBABC3 /* ImageIO.framework in Frameworks */,
5376129A155AB74D005750A4 /* UIKit.framework in Frameworks */,
5376129C155AB74D005750A4 /* Foundation.framework in Frameworks */,
Expand Down Expand Up @@ -112,7 +109,7 @@
53761298155AB74D005750A4 /* Frameworks */ = {
isa = PBXGroup;
children = (
539807FA16434977003B5191 /* SDWebImage.xcodeproj */,
53EEC1A3164845D8007601E1 /* SDWebImage.xcodeproj */,
537612E6155ABA44005750A4 /* ImageIO.framework */,
537612E3155ABA3C005750A4 /* MapKit.framework */,
53761299155AB74D005750A4 /* UIKit.framework */,
Expand All @@ -125,6 +122,7 @@
5376129F155AB74D005750A4 /* SDWebImage Demo */ = {
isa = PBXGroup;
children = (
3E75A9851742DBE700DA412D /* CustomPathImages */,
537612A8155AB74D005750A4 /* AppDelegate.h */,
537612A9155AB74D005750A4 /* AppDelegate.m */,
537612AB155AB74D005750A4 /* MasterViewController.h */,
Expand All @@ -141,6 +139,7 @@
537612A0155AB74D005750A4 /* Supporting Files */ = {
isa = PBXGroup;
children = (
53EEC18816484553007601E1 /* Default-568h@2x.png */,
537612A1155AB74D005750A4 /* SDWebImage Demo-Info.plist */,
537612A5155AB74D005750A4 /* main.m */,
537612A7155AB74D005750A4 /* SDWebImage Demo-Prefix.pch */,
Expand All @@ -150,12 +149,11 @@
name = "Supporting Files";
sourceTree = "<group>";
};
539807FB16434977003B5191 /* Products */ = {
53EEC1A4164845D8007601E1 /* Products */ = {
isa = PBXGroup;
children = (
5398080216434977003B5191 /* libSDWebImage.a */,
5398080416434977003B5191 /* libSDWebImage.a */,
5398080616434977003B5191 /* libSDWebImageARC+MKAnnotation.a */,
53EEC1AD164845D9007601E1 /* libSDWebImage.a */,
53EEC1AF164845D9007601E1 /* libSDWebImage+MKAnnotation.a */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -174,7 +172,7 @@
buildRules = (
);
dependencies = (
53980815164349BD003B5191 /* PBXTargetDependency */,
53EEC1B1164845E3007601E1 /* PBXTargetDependency */,
);
name = "SDWebImage Demo";
productName = "SDWebImage Demo";
Expand Down Expand Up @@ -202,8 +200,8 @@
projectDirPath = "";
projectReferences = (
{
ProductGroup = 539807FB16434977003B5191 /* Products */;
ProjectRef = 539807FA16434977003B5191 /* SDWebImage.xcodeproj */;
ProductGroup = 53EEC1A4164845D8007601E1 /* Products */;
ProjectRef = 53EEC1A3164845D8007601E1 /* SDWebImage.xcodeproj */;
},
);
projectRoot = "";
Expand All @@ -214,25 +212,18 @@
/* End PBXProject section */

/* Begin PBXReferenceProxy section */
5398080216434977003B5191 /* libSDWebImage.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libSDWebImage.a;
remoteRef = 5398080116434977003B5191 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
5398080416434977003B5191 /* libSDWebImage.a */ = {
53EEC1AD164845D9007601E1 /* libSDWebImage.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libSDWebImage.a;
remoteRef = 5398080316434977003B5191 /* PBXContainerItemProxy */;
remoteRef = 53EEC1AC164845D9007601E1 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
5398080616434977003B5191 /* libSDWebImageARC+MKAnnotation.a */ = {
53EEC1AF164845D9007601E1 /* libSDWebImage+MKAnnotation.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libSDWebImageARC+MKAnnotation.a";
remoteRef = 5398080516434977003B5191 /* PBXContainerItemProxy */;
path = "libSDWebImage+MKAnnotation.a";
remoteRef = 53EEC1AE164845D9007601E1 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */
Expand All @@ -246,6 +237,8 @@
537612B6155AB74D005750A4 /* DetailViewController.xib in Resources */,
53A2B50D155B155A00B12423 /* placeholder.png in Resources */,
53A2B50E155B155A00B12423 /* placeholder@2x.png in Resources */,
53EEC18916484553007601E1 /* Default-568h@2x.png in Resources */,
3E75A9861742DBE700DA412D /* CustomPathImages in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -266,10 +259,10 @@
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
53980815164349BD003B5191 /* PBXTargetDependency */ = {
53EEC1B1164845E3007601E1 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "SDWebImage ARC";
targetProxy = 53980814164349BD003B5191 /* PBXContainerItemProxy */;
name = SDWebImage;
targetProxy = 53EEC1B0164845E3007601E1 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

Expand Down Expand Up @@ -313,7 +306,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
SDKROOT = iphoneos;
};
name = Debug;
Expand All @@ -331,7 +324,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
Expand Down
6 changes: 6 additions & 0 deletions Examples/SDWebImage Demo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@

#import "MasterViewController.h"

#import <SDWebImage/SDImageCache.h>

@implementation AppDelegate

@synthesize window = _window;
@synthesize navigationController = _navigationController;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//Add a custom read-only cache path
NSString *bundledPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"CustomPathImages"];
[[SDImageCache sharedImageCache] addReadOnlyCachePath:bundledPath];

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.

Expand Down
17 changes: 16 additions & 1 deletion Examples/SDWebImage Demo/DetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,22 @@ - (void)configureView
{
if (self.imageURL)
{
[self.imageView setImageWithURL:self.imageURL placeholderImage:nil options:SDWebImageProgressiveDownload];
__block UIActivityIndicatorView *activityIndicator;
__weak UIImageView *weakImageView = self.imageView;
[self.imageView setImageWithURL:self.imageURL placeholderImage:nil options:SDWebImageProgressiveDownload progress:^(NSUInteger receivedSize, long long expectedSize)
{
if (!activityIndicator)
{
[weakImageView addSubview:activityIndicator = [UIActivityIndicatorView.alloc initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]];
activityIndicator.center = weakImageView.center;
[activityIndicator startAnimating];
}
}
completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType)
{
[activityIndicator removeFromSuperview];
activityIndicator = nil;
}];
}
}

Expand Down
Loading