From a8f5627052e70052a839c819fef6339a3784e1f5 Mon Sep 17 00:00:00 2001 From: Bogdan Poplauschi Date: Thu, 19 Jun 2014 10:36:13 +0300 Subject: [PATCH] Added doc description for the NSData category --- SDWebImage/NSData+ImageContentType.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SDWebImage/NSData+ImageContentType.h b/SDWebImage/NSData+ImageContentType.h index bb78bb0c..9ad2dfe8 100644 --- a/SDWebImage/NSData+ImageContentType.h +++ b/SDWebImage/NSData+ImageContentType.h @@ -6,5 +6,14 @@ #import @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