Skip to content

Commit

Permalink
Added doc description for the NSData category
Browse files Browse the repository at this point in the history
  • Loading branch information
bpoplauschi committed Jun 19, 2014
1 parent dfceb49 commit a8f5627
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SDWebImage/NSData+ImageContentType.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,14 @@
#import <Foundation/Foundation.h>

@interface NSData (ImageContentType)

/**
* Compute the content type for an image data
*
* @param data the input data
*
* @return the content type as string (i.e. image/jpeg, image/gif)
*/
+ (NSString *)contentTypeForImageData:(NSData *)data;

@end

0 comments on commit a8f5627

Please sign in to comment.