Merge pull request #2532 from zhongwuzw/fix_comments

Fix comments in code
This commit is contained in:
Bogdan Poplauschi 2018-11-15 20:18:26 -06:00 committed by GitHub
commit e7c29639cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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.
*/

View File

@ -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.

View File

@ -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"]];