Added doc description for the NSData category

This commit is contained in:
Bogdan Poplauschi 2014-06-19 10:36:13 +03:00
parent dfceb49d2b
commit a8f5627052
1 changed files with 9 additions and 0 deletions

View File

@ -6,5 +6,14 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@interface NSData (ImageContentType) @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; + (NSString *)contentTypeForImageData:(NSData *)data;
@end @end