Skip to content

Commit 26ce2da

Browse files
author
Lucian Boboc
committed
- changed urlString to be nullable so it doesn't required nil check with Swift.
1 parent ecfd011 commit 26ce2da

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

LBCache.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "LBCache"
4-
s.version = "1.0.2"
4+
s.version = "1.0.3"
55
s.summary = "LBCache image cache framework"
66
s.description = <<-DESC
77
LBCache is an asynchronous image cache framework for iOS.

LBCache/LBCacheManager.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ typedef NS_ENUM(NSUInteger, LBCacheError){
4545

4646
+ (LBCacheManager * __nonnull) sharedInstance;
4747

48-
- (ImageOperation * __nullable) downloadImageFromURLString: (NSString * __nonnull) urlString options: (LBCacheImageOptions) options progressBlock: (ProgressBlock __nullable) progressBlock completionBlock: (LBCacheImageBlock __nonnull) completionBlock;
48+
- (ImageOperation * __nullable) downloadImageFromURLString: (NSString * __nullable) urlString options: (LBCacheImageOptions) options progressBlock: (ProgressBlock __nullable) progressBlock completionBlock: (LBCacheImageBlock __nonnull) completionBlock;
4949

50-
- (NSString * __nullable) imagePathLocationForURLString: (NSString * __nonnull) key;
50+
- (NSString * __nullable) imagePathLocationForURLString: (NSString * __nullable) key;
5151

52-
- (UIImage * __nullable) imageForURLString: (NSString * __nonnull) urlString;
52+
- (UIImage * __nullable) imageForURLString: (NSString * __nullable) urlString;
5353

5454
- (NSURL * __nonnull)applicationCachesDirectory;
5555
- (NSURL * __nonnull) getLBCacheDirectory;

LBCache/UIImageView+LBcategory.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111

1212
@interface UIImageView (LBcategory)
1313

14-
- (void) setImageWithURLString: (NSString * __nonnull) urlString placeholderImage: (UIImage * __nullable) placeholderImage;
14+
- (void) setImageWithURLString: (NSString * __nullable) urlString placeholderImage: (UIImage * __nullable) placeholderImage;
1515

16-
- (void) setImageWithURLString: (NSString * __nonnull) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) option;
16+
- (void) setImageWithURLString: (NSString * __nullable) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) option;
1717

18-
- (void) setImageWithURLString: (NSString * __nonnull) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) option completionBlock: (LBCacheImageBlock __nullable) completionBlock;
18+
- (void) setImageWithURLString: (NSString * __nullable) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) option completionBlock: (LBCacheImageBlock __nullable) completionBlock;
1919

20-
- (void) setImageWithURLString: (NSString * __nonnull) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) option progressBlock: (ProgressBlock __nullable) progressBlock completionBlock: (LBCacheImageBlock __nullable) completionBlock;
20+
- (void) setImageWithURLString: (NSString * __nullable) urlString placeholderImage: (UIImage * __nullable) placeholderImage options: (LBCacheImageOptions) option progressBlock: (ProgressBlock __nullable) progressBlock completionBlock: (LBCacheImageBlock __nullable) completionBlock;
2121

22-
- (UIImage * __nullable) imageForURLString: (NSString * __nonnull) urlString;
22+
- (UIImage * __nullable) imageForURLString: (NSString * __nullable) urlString;
2323

2424
- (void) cancelDownload;
2525

0 commit comments

Comments
 (0)