Added doc description for the NSData category
Showing
1 changed file
with
9 additions
and
0 deletions
@@ -6,5 +6,14 @@ | @@ -6,5 +6,14 @@ | ||
6 | #import <Foundation/Foundation.h> | 6 | #import <Foundation/Foundation.h> |
7 | 7 | ||
8 | @interface NSData (ImageContentType) | 8 | @interface NSData (ImageContentType) |
9 | + | ||
10 | +/** | ||
11 | + * Compute the content type for an image data | ||
12 | + * | ||
13 | + * @param data the input data | ||
14 | + * | ||
15 | + * @return the content type as string (i.e. image/jpeg, image/gif) | ||
16 | + */ | ||
9 | + (NSString *)contentTypeForImageData:(NSData *)data; | 17 | + (NSString *)contentTypeForImageData:(NSData *)data; |
18 | + | ||
10 | @end | 19 | @end |
-
Please register or login to post a comment