Merge pull request #2532 from zhongwuzw/fix_comments
Fix comments in code
This commit is contained in:
commit
e7c29639cb
|
@ -167,7 +167,7 @@ FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderWebImageContext;
|
|||
|
||||
/**
|
||||
Total animated frame count.
|
||||
It the frame count is less than 1, then the methods below will be ignored.
|
||||
If the frame count is less than 1, then the methods below will be ignored.
|
||||
|
||||
@return Total animated frame count.
|
||||
*/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
- by default we internally set coders = `IOCoder`, `GIFCoder`
|
||||
- calling `coders` will return `@[IOCoder, GIFCoder]`
|
||||
- call `[addCoder:[MyCrazyCoder new]]`
|
||||
- calling `coders` now returns `@[MyCrazyCoder, IOCoder, GIFCoder]`
|
||||
- calling `coders` now returns `@[IOCoder, GIFCoder, MyCrazyCoder]`
|
||||
|
||||
Coders
|
||||
------
|
||||
|
@ -29,7 +29,7 @@
|
|||
Those methods are called on each coder in the array (using the priority order) until one of them returns YES.
|
||||
That means that coder can decode that data / encode to that format
|
||||
*/
|
||||
@interface SDImageCodersManager : NSObject<SDImageCoder>
|
||||
@interface SDImageCodersManager : NSObject <SDImageCoder>
|
||||
|
||||
/**
|
||||
Returns the global shared coders manager instance.
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:MyIdentifier];
|
||||
}
|
||||
|
||||
// Here we use the provided sd_setImageWithURL: method to load the web image
|
||||
// Here we use the provided sd_setImageWithURL:placeholderImage: method to load the web image
|
||||
// Ensure you use a placeholder image otherwise cells will be initialized with no image
|
||||
[cell.imageView sd_setImageWithURL:[NSURL URLWithString:@"http://example.com/image.jpg"]
|
||||
placeholderImage:[UIImage imageNamed:@"placeholder"]];
|
||||
|
|
Loading…
Reference in New Issue