Commit Graph

620 Commits

Author SHA1 Message Date
Bogdan Poplauschi af3e4f87e4 Returning error in setImage completedBlock if the url was nil. Added `dispatch_main_async_safe` macro. Fixes #505 2014-06-19 23:24:08 +03:00
Bogdan Poplauschi eb91fdd3b8 Fixed issue #529 - if the `cacheKeyFilter` was set, this was ignored when computing the `scaledImageForKey`. For most of the developers that did not set `cacheKeyFilter`, the code will work exactly the same 2014-06-19 23:05:14 +03:00
Olivier Poitrey a8a69ab9b6 Merge pull request #770 from bpoplauschi/completion_with_url
Pass imageURL in completedBlock
2014-06-19 12:38:12 -07:00
Bogdan Poplauschi 136daba9df Added proper handling for SDWebImageDownloaderLowPriority (aka NSOperationQueuePriorityLow). Fixes #713 #745 2014-06-19 22:19:22 +03:00
Bogdan Poplauschi e116aa5ce0 Updated some older code to match the coding style 2014-06-19 21:58:20 +03:00
Bogdan Poplauschi ea663b9602 As discussed with @rs, prefixed all the new methods to sd_set* 2014-06-19 21:54:25 +03:00
Bogdan Poplauschi 03a751430d Pass image URL in completion blocks - step 6:
- deprecated block type `SDWebImageCompletedBlock `, replaced with `SDWebImageCompletedBlock ` that contains NSURL* param
2014-06-19 12:27:08 +03:00
Bogdan Poplauschi 81b5e72a9c Pass image URL in completion blocks - step 5:
- deprecated all UIImageView(WebCache) `setImage*` methods. Replaced with `loadImage*` methods that use the `SDWebImageCompletionBlock` as completion block type
- created WebCacheDeprecated category on UIImageView (to avoid collisions, we didn't name it Deprecated)
- replaced the usages of the deprecated items with the new ones
2014-06-19 12:26:12 +03:00
Bogdan Poplauschi 21b230f28f Fixed misspell (downloand -> download) 2014-06-19 12:13:39 +03:00
Bogdan Poplauschi 76b552e21e Pass image URL in completion blocks - step 4:
- deprecated all UIImageView(HighlightedWebCache) `setImage*` methods. Replaced with `loadImage*` methods that use the `SDWebImageCompletionBlock` as completion block type
- created HighlightedWebCacheDeprecated category on UIImageView (to avoid collisions, we didn't name it Deprecated)
- replaced the usages of the deprecated items with the new ones
2014-06-19 12:12:58 +03:00
Bogdan Poplauschi c38409b813 Updated UIButton category documentation (forth param for the completion block) + alignaments 2014-06-19 12:04:07 +03:00
Bogdan Poplauschi 673fca9113 Documentation alignaments 2014-06-19 12:00:23 +03:00
Bogdan Poplauschi 939f68d27e Updated MKAnnotation view category documentation (forth param for the completion block) + alignaments 2014-06-19 11:55:02 +03:00
Bogdan Poplauschi 7108b4f404 Pass image URL in completion blocks - step 3:
- deprecated all UIButton(WebCache) `setImage*` methods. Replaced with `loadImage*` methods that use the `SDWebImageCompletionBlock` as completion block type
- created WebCacheDeprecated category on UIButton (to avoid collisions, we didn't name it Deprecated)
- replaced the usages of the deprecated items with the new ones
2014-06-19 11:49:27 +03:00
Bogdan Poplauschi 654a9c98ea Pass image URL in completion blocks - step 2:
- created block type `SDWebImageCompletionBlock` that contains NSURL* param
- deprecated all MKAnnotationView(WebCache) `setImage*` methods. Replaced with `loadImage*` methods that use the `SDWebImageCompletionBlock` as completion block type
- created WebCacheDeprecated category on MKAnnotationView (to avoid collisions, we didn't name it Deprecated)
- replaced the usages of the deprecated items with the new ones
2014-06-19 11:32:28 +03:00
Bogdan Poplauschi 233ef65f98 Pass image URL in completion blocks - step 1:
- deprecated block type `SDWebImageCompletedWithFinishedBlock`, replaced with `SDWebImageCompletionWithFinishedBlock` that contains NSURL* param
- deprecated SDWebImageManager `-downloadWithURL:options:progress:completed:` method. Replaced with `downloadImageWithURL:options:progress:completed:` that uses the `SDWebImageCompletionWithFinishedBlock ` as completion block type
- created Deprecated category for SDWebImageManager containing the old method
- replaced the usages of the deprecated items with the new ones
2014-06-19 11:10:38 +03:00
Bogdan Poplauschi 99b7a090f8 Missing new line 2014-06-19 10:51:55 +03:00
Bogdan Poplauschi a8f5627052 Added doc description for the NSData category 2014-06-19 10:36:13 +03:00
Bogdan Poplauschi dfceb49d2b Reordered categories in project file 2014-06-19 10:35:55 +03:00
Bogdan Poplauschi e4b9ef512b Fixed a warning in the demo project 2014-06-19 10:21:09 +03:00
Bogdan Poplauschi 455188355f Merge pull request #764 from n13/master
support for image orientation
2014-06-19 00:02:20 +03:00
Bogdan Poplauschi 9dcd68d5ee Merge pull request #751 from robertmryan/master
Avoid premature completion of prefetcher if request fails
2014-06-18 15:39:57 +03:00
Bogdan Poplauschi e4104942ee Return nil from SDScaledImageForKey if the input image is nil. Replaces #750. Fixes #365 2014-06-18 15:28:13 +03:00
Bogdan Poplauschi f6fdaeb6ae Merge pull request #766 from Whirlwind/origin_master
should not add url to failedURLs when timeout, cancel and so on. #707
2014-06-17 21:57:54 +03:00
Whirlwind 364f5c4d7a should not add url to failedURLs when timeout, cancel and so on. #707 2014-06-18 00:14:23 +08:00
Bogdan Poplauschi b81b7f9b4a Merge pull request #765 from Whirlwind/fix_highlight_error
fix UIImageView+HighlightedWebCache call error method
2014-06-17 19:08:28 +03:00
Bogdan Poplauschi 6c409cd8a0 Exposing the SDWebImageManager from the SDWebImagePrefetcher class. Fixes #394 2014-06-17 18:54:04 +03:00
Nikolaus Heger c76aba6c00 support for image orientation 2014-06-17 22:38:37 +07:00
Bogdan Poplauschi 2973aedd09 Merge pull request #683 from brynbodayle/master
Fixed issue where cancelled operations aren't removed from runningOperations.
2014-06-17 17:04:34 +03:00
Bogdan Poplauschi 0772019e4d SDWebImageManager uses the shared instance of SDWebImageDownloader. This was requested by several developers for easier setup of their downloads. Replaces #486 2014-06-16 18:21:06 +03:00
Bogdan Poplauschi 22782052a1 Updated README.md 2014-06-16 18:10:23 +03:00
Bogdan Poplauschi 6759e5982e Merge pull request #376 from ivanoblomov/master
Added alternate compiler flag for frameworks that extend optional libraries, like Parse and RestKit
2014-06-16 18:07:39 +03:00
Bogdan Poplauschi d6a7e1a8c3 Merge pull request #763 from dchohfi/master
#761 fixing potential bug when sending a nil url for UIButton+WebCache
2014-06-16 17:59:22 +03:00
Diego Chohfi f5d0ddc270 #761 fixing potential bug when sending a nil url for UIButton+WebCache 2014-06-16 11:46:19 -03:00
Bogdan Poplauschi 689586f73a Merge pull request #687 from rokemoon/master
Create NSOperation when start operation.
2014-06-15 22:38:07 +03:00
Bogdan Poplauschi e6c0f56d1f Exposed cache paths - fixes #339 2014-06-15 22:23:48 +03:00
Bogdan Poplauschi a0bc09df7d Merge pull request #644 from kencoken/master
Added method to SDWebImageManager to check if an image exists in either ...
2014-06-15 18:29:23 +03:00
Bogdan Poplauschi 5fd21e5ce1 Exposed SDWebImageManager cacheKeyForURL 2014-06-15 18:08:32 +03:00
Bogdan Poplauschi 5b1451e11c Since we use tag 3.6, the podspec file must match that. Fixes #757 2014-06-13 18:23:17 +03:00
Bogdan Poplauschi b29850b61b Merge pull request #714 from derpoliuk/master
Saves image to cache without downloading it.
2014-06-13 10:11:28 +03:00
Bogdan Poplauschi 7abff886ae Merge pull request #560 from klaaspieter/imageURL-property
Keep a reference to the image URL
2014-06-13 10:07:30 +03:00
Klaas Pieter Annema 1ac6b92d9d Conform to coding style 2014-06-12 13:31:40 -04:00
Klaas Pieter Annema b9389350cb Store image URLs by state in the UIButton category 2014-06-12 13:31:40 -04:00
Klaas Pieter Annema 67ed774c0c Scratch that, this won't work on UIButton 2014-06-12 13:31:40 -04:00
Klaas Pieter Annema 825207d1d0 Add imageURL property to remaining categories 2014-06-12 13:31:40 -04:00
Klaas Pieter Annema 77be243598 Add documentation to imageURL property 2014-06-12 13:30:48 -04:00
Klaas Pieter Annema 074ce1f4cf Keep a reference to the image URL 2014-06-12 13:30:48 -04:00
Olivier Poitrey f5bd783b5e Merge pull request #701 from billburgess/delayplaceholder
Delay the loading of the placeholder image until after load
2014-06-12 06:38:34 -07:00
Bogdan Poplauschi 3284e157ff Documented SDWebImageDownloaderOperation initWithRequest:options:progress:completed:cancelled: method. Fixes #526 2014-06-12 14:58:32 +03:00
Bogdan Poplauschi fe48ee54f3 Added SDWebImageCompat.m to SDWebImage+MKAnnotation target 2014-06-11 12:46:20 +03:00