mirror of
https://github.com/zhigang1992/FunctionalReactivePixels.git
synced 2026-01-12 17:22:42 +08:00
21 lines
534 B
Objective-C
21 lines
534 B
Objective-C
//
|
|
// NSData+AFDecompression.h
|
|
// Performance Problems Example
|
|
//
|
|
// Created by Ash Furrow on 2012-12-28.
|
|
// Copyright (c) 2012 Ash Furrow. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
#import "ReactiveCocoa/ReactiveCocoa.h"
|
|
|
|
typedef void (^AFJPEGWasDecompressedCallback)(UIImage *decompressedImage);
|
|
|
|
@interface NSData (AFDecompression)
|
|
|
|
// The callback block is executed on the main thread.
|
|
-(void)af_decompressedImageFromJPEGDataWithCallback:(AFJPEGWasDecompressedCallback)callback;
|
|
|
|
@end
|