Categories

The following categories are available globally.

  • NSData category about the image content type and UTI.

    See more

    Declaration

    Objective-C

    @interface NSData (ImageContentType)
  • Integrates SDWebImage async downloading and caching of remote images with UIButton.

    See more

    Declaration

    Objective-C

    @interface UIButton (WebCache)
  • Declaration

    Objective-C

    @interface UIImage (ExtendedCacheData)
    
    /**
     Read and Write the extended object and bind it to the image. Which can hold some extra metadata like Image's scale factor, URL rich link, date, etc.
     The extended object should conforms to NSCoding, which we use `NSKeyedArchiver` and `NSKeyedUnarchiver` to archive it to data, and write to disk cache.
     @note The disk cache preserve both of the data and extended data with the same cache key. For manual query, use the `SDDiskCache` protocol method `extendedDataForKey:` instead.
     @note You can specify arbitrary object conforms to NSCoding (NSObject protocol here is used to support object using `NS_ROOT_CLASS`, which is not NSObject subclass). If you load image from disk cache, you should check the extended object class to avoid corrupted data.
     @warning This object don't need to implements NSSecureCoding (but it's recommended),  because we allows arbitrary class.
     */
    @property (nonatomic, strong, nullable) id<NSObject, NSCoding> sd_extendedObject;
    
    @end
  • UIImage category about force decode feature (avoid Image/IO’s lazy decoding during rendering behavior).

    See more

    Declaration

    Objective-C

    @interface UIImage (ForceDecode)
  • This category is just use as a convenience method. For more detail control, use methods in UIImage+MultiFormat.h or directly use SDImageCoder.

    See more

    Declaration

    Objective-C

    @interface UIImage (GIF)
  • UIImage category for memory cache cost.

    See more

    Declaration

    Objective-C

    @interface UIImage (MemoryCacheCost)
  • UIImage category for image metadata, including animation, loop count, format, incremental, etc.

    See more

    Declaration

    Objective-C

    @interface UIImage (Metadata)
  • UIImage category for convenient image format decoding/encoding.

    See more

    Declaration

    Objective-C

    @interface UIImage (MultiFormat)
  • Provide some common method for UIImage. Image process is based on Core Graphics and vImage.

    See more

    Declaration

    Objective-C

    @interface UIImage (Transform)
  • Integrates SDWebImage async downloading and caching of remote images with UIImageView for highlighted state.

    See more

    Declaration

    Objective-C

    @interface UIImageView (HighlightedWebCache)
  • Integrates SDWebImage async downloading and caching of remote images with UIImageView.

    See more

    Declaration

    Objective-C

    @interface UIImageView (WebCache)
  • Integrates SDWebImage async downloading and caching of remote images with UIView subclass.

    See more

    Declaration

    Objective-C

    @interface UIView (WebCache)
  • These methods are used to support canceling for UIView image loading, it’s designed to be used internal but not external. All the stored operations are weak, so it will be dealloced after image loading finished. If you need to store operations, use your own class to keep a strong reference for them.

    See more

    Declaration

    Objective-C

    @interface UIView (WebCacheOperation)