Declared in NSData+ImageContentType.h

Tasks

Class Methods

sd_contentTypeForImageData:

+ (NSString *)sd_contentTypeForImageData:(NSData *)data
Discussion

Compute the content type for an image data

Parameters

data

the input data

Return Value

the content type as string (i.e. image/jpeg, image/gif)

Declared In

NSData+ImageContentType.h